Page 1 of 1

Numeric page name & Posted by Tag not working

Posted: Sun Jul 08, 2007 6:36 am
by wournos
Hi.

I have two issues right now. One is: How do I create a page with a page ID instead of an actual name? Example: http://www.scapershaven.com/index.php?id=208
Do I have to add it by hand or can it be done automatically? I don't want all pages to have Page ID. Only selected ones.


I also would like to know why my 'Posted by' tags doesn't work. I have added the following code to my pages but it doesn't show anywhere but on the News page. The 'Modiefied by' tag works just fine.

Code: Select all

<h3 class="text3">{title}</h3>
<h4 class="text4">Posted by {$entry->author} on {$entry->formatpostdate}<br/>Last modified by {last_modified_by format="username"} on {modified_date format='%b %e %G, %R'}</h4>
Any ideas?

/W

Re: Numeric page name & Posted by Tag not working

Posted: Tue Jul 17, 2007 3:43 pm
by wournos
I still have these issues and I would really appriciate some help.

I have added the code above to my two basic non-news templates to get the author username to show. Nothing happens. I have tried switching 'author' to 'authorname' or 'username'. Nothing happens. The {last_modified_by format="username"} and {modified_date format='%b %e %G, %R'} works just fine.

What do I do wrong?

Re: Numeric page name & Posted by Tag not working

Posted: Tue Jul 17, 2007 7:36 pm
by calguy1000
The {get_template_vars} tag will tell you what variables are available. to see inside of objects for debugging templates, etc. you can use {$objectname|print_r}

These two things will help you get alot further with template modifications.