Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
Page Title order?
I’ve been meaning to ask about this for a while now. Would it be possible to allow for page title sort ordering in a future version?
Instead of having “Site Name – Article Title” I’d really like to have “Article Title – Site Name”.
I know this is possible a few different ways, but having a simple order=1,2 in the <txp:page_title />
would be fantastic.
Thoughts?
Sam Brown
sambrown.me | welovetxp.com
Offline
Re: Page Title order?
Simply using the <txp:title /> and <txp:site_name /> tags instead of <txp_page_title /> is easier to understand.
Offline
Re: Page Title order?
Of course, but then you have to use a whole bunch of if’s to get it to work on the homepage and in sections.
<txp:page_title />
works across all three:
- Homepage: Site Name
- Sub-page: Site Name – Page Title
- Section : Site Name – Section Title
Using <txp:title />
& <txp:site_name />
would require something like this no?
<txp:if_section name=",">
<title>
<txp:if_individual_article>
<txp:title /> - <txp:site_name />
</txp:if_individual_article>
<txp:if_article_list>
<txp:site_name />
</txp:if_article_list>
</title>
</txp:if_section>
<txp:if_section name="archive">
<title>Archive - <txp:site_name /></title>
</txp:if_section>
<txp:if_section name="contact">
<title>Contact - <txp:site_name /></title>
</txp:if_section>
Or is there an easier way to manage that?
Sam Brown
sambrown.me | welovetxp.com
Offline
Re: Page Title order?
Offline
Re: Page Title order?
Smashing! I stupidly didn’t even check to see if a plugin did this. Thanks wet!
Sam Brown
sambrown.me | welovetxp.com
Offline
Pages: 1