Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted June 2, 20186 yr Is it possible to change the location where the author displays on records/articles in Pages? I am setting up Pages as a wiki. I would like for the author pane to either not display at all within the record or at the bottom of it. Screenshot shows how it currently displays....
June 2, 20186 yr Edit the Template. Find out which template that articles database is using, find the "Entry" part of the template, in that, find: <ul class="record-info"> <li><i class="fa fa-calendar"></i>{datetime="$record->record_publish_date"}</li> <li><i class="fa fa-user"></i>{lang="byline_nodate" htmlsprintf="$record->author()->link()"}</li> {{if $record::database()->options['comments']}}<li class="comments"><i class="fa fa-comment"></i><a href='{$record->url()}#comments' title='{lang="view_comments"}'>{lang="num_comments" pluralize="$record->record_comments"}</a></li>{{endif}} <li><i class="fa fa-eye"></i>{lang="num_views_with_number" pluralize="$record->record_views"}</li> <li><i class="fa fa-plus"></i><a href="{$record->url()}" title="{lang="read_more_about" sprintf="$record->_title"}">Read More</a></li> </ul> You can remove this, move it to the end of the entry, or whatever you need to do with it. Edit: Whoops, may not be the "Entry", might be under "Record". Entry I think controls the front-end "database" look. Same lines iirc: <ul class="record-info"> <li class="userPhoto">{template="userPhoto" app="core" group="global" params="$record->author(), 'large', $record->warningRef()"}</li> <li><i class="fa fa-user"></i>{lang="byline_nodate" htmlsprintf="$record->author()->link()"}</li> <li><i class="fa fa-calendar"></i>{datetime="$record->record_publish_date"}</li> {{if $record::database()->options['comments']}}<li><i class="fa fa-comment"></i><a href='{$record->url()}#comments' title='{lang="view_comments"}'>{lang="num_comments" pluralize="$record->record_comments"}</a></li>{{endif}} <li><i class="fa fa-eye"></i>{lang="num_views_with_number" pluralize="$record->record_views"}</li> </ul>
June 3, 20186 yr @Stormwolfe or you can simply add a CSS class that chooses to "display:none;" and not affect the template at all. You can do this on a per page basis or not.
June 3, 20186 yr 12 hours ago, Jennifer M said: @Stormwolfe or you can simply add a CSS class that chooses to "display:none;" and not affect the template at all. You can do this on a per page basis or not. Would that be something along the lines of this in your custom.css per theme? .record-info {display:none!important}
June 3, 20186 yr 4 hours ago, AlexWright said: Would that be something along the lines of this in your custom.css per theme? Not necessarily in custom.css because you might not wish this to take effect globally. But you could add it to a CSS page (Pages > Templates) then add that CSS file to the page that the database is contained within.
Archived
This topic is now archived and is closed to further replies.