View Single Post
Old 07-25-2024, 10:46 PM   #9767
TaviCalderon
Enthusiast
TaviCalderon began at the beginning.
 
Posts: 25
Karma: 10
Join Date: Dec 2023
Device: Kindle Scribe
hi back yet again and i'm unsure if this is even possible, so if its not that is fine. just let me know if i'm off the mark!

is it possible to make the series: ____ and byline: ____ sections on my title pages hyperlinks to the series page and author page? like, the same way that the work title has the link to the site embedded in it.

before i went and customized it, the author name was at the very top of the titlepage where it went [Story Name] by [Author Name]. both were functioning links to the story and author pages on ao3. i have a section called "byline" lower down on my title page, which is where i prefer author names be, so i removed the author from the top of the page.

i feel like it should be possible to make the spot where my author names show up be a link once more even though its toward the bottom of the page, but i'm not sure how i would accomplish that. what i have tried so far looked like the below, adding to wide_titlepage_entries, and it didnt do anything at all. (tried something similar but with {seriesurl} instead of {authorurl}, also did not work.)

Spoiler:

Code:
wide_titlepage_entries:
<b class="fff_tp_label" id="${id}_label">${label}:</b>
<span class="fff_tp_value" id="${id}_value">
${id == 'author' ? '<a href="${authorurl}">${value}</a>' : '${value}'}
</span><br />


am i labelling something wrong, or am i trying to do the impossible?? (i am still bad at css and do not know what i am doing. still sorry about it.)

if it helps at all, the relevant section of my personal.ini [defaults] looks like this:

Spoiler:

Code:
titlepage_entries: series,category,ships,characters,<br />,calibre_std_rating,status,rating,warnings,ao3categories,bookmarktags,<br />
extra_titlepage_entries:chapterslashtotal,numWords,bookmarks,kudos,comments,hits,datePublished,dateUpdated,author,collections,<br />,freeformtags,<br />,description

replace_metadata:
 calibre_std_rating=>1=>★
 calibre_std_rating=>2=>★★
 calibre_std_rating=>3=>★★★
 calibre_std_rating=>4=>★★★★
 calibre_std_rating=>5=>★★★★★



and my [epub] section looks like this:

Spoiler:

Code:
[epub]
titlepage_start:<?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
 <html xmlns="http://www.w3.org/1999/xhtml">
 <head>
 <title>${title}</title>
 <link href="stylesheet.css" type="text/css" charset="UTF-8" rel="stylesheet"/>
 </head>
 <body class="fff_titlepage">
 <h3><a href="${storyUrl}">${title}</a></h3>
 <div>

titlepage_entry:<b class="fff_tp_label" id="${id}_label">${label}:</b> <span class="fff_tp_value" id="${id}_value">${value}</span><br />


## When using tables, make these span both columns.
wide_titlepage_entries:<b class="fff_tp_label" id="${id}_label">${label}:</b> <span class="fff_tp_value" id="${id}_value">${value}</span><br />


add_to_output_css:
 #description_value {
    font-style: italic;
 }
 div.fff_chapter_notes {
    font-weight: bold;
    }
TaviCalderon is offline   Reply With Quote