|
#1
|
||||
|
||||
|
Conditional format for navigation separators
I'm using the following PP tags in my template's navigation:
Code:
<IMAGE_PREVIOUS_LINK> <IMAGE_NEXT_LINK> Prev | Comments | Next // Home - Blog - Archive...etc. On the oldest and most recent posts it looks like this: Prev | Comments | // Home - Blog - Archive...etc. | Comments | Next // Home - Blog - Archive...etc. I want it to look like this: Prev | Comments // Home - Blog - Archive...etc. Comments | Next // Home - Blog - Archive...etc. That is, I want the extra "|" separators to disappear when there's no Prev or Next link showing. I've done this before in Textpattern, but couldn't find a tag for it in PP. |
|
#2
|
|||
|
|||
|
this text is always a mixture of the template, the language-file and the code which is produced by the script
so look into your language file: Quote:
|
|
#3
|
||||
|
||||
|
The separators are manually placed in the template, so I think what you're saying is that I can go into the PHP and add them there.
|
|
#4
|
|||
|
|||
|
you should use the language-file and define the strings there:
Quote:
Quote:
the language-file should be changed in /languages/lang-english.php for example |
|
#5
|
||||
|
||||
|
Thanks Connie, it worked like a charm!
|
| Post Reply |
| Thread Tools | |
|
|