Numeric page name & Posted by Tag not working

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
wournos
Forum Members
Forum Members
Posts: 40
Joined: Sat Jun 23, 2007 6:23 pm

Numeric page name & Posted by Tag not working

Post 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
wournos
Forum Members
Forum Members
Posts: 40
Joined: Sat Jun 23, 2007 6:23 pm

Re: Numeric page name & Posted by Tag not working

Post 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?
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Numeric page name & Posted by Tag not working

Post 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.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Post Reply

Return to “CMSMS Core”