Injader
Forums > Help Forum > Moving Stuff Around

: What I like so far >

sweetmummy's avatar

sweetmummy
Permalink

Created: February 25, 2008 18:51 / Edited: Never

Moving Stuff Around

I'm getting a feel for what the templates look like and such.  I'd like to move things around within the template.  For example, right now my tags are above the title of the Article.  I'd like the tags to follow the article.  I haven't figured out how to do that...

Same with the link to the previous article - I'd like that AFTER the 'posted by... on...' line.

Don't want to really mess things up...  This might be pretty basic, but then again, maybe not.

Thanks!

Tags: templates, tags

Ben's avatar

Ben
Permalink


1

Created: February 25, 2008 20:34

Go to Admin - Page Templates and edit the template you're currently using. If you're not sure, start at Admin - Structure, and click the Modify link just beside the area you're currently working on - that will show you the templates currently used by the area.

Now, when you go to edit the template, look for this:

<p>Tags: $strContTags</p>

You can then put that code anywhere you like.

The code I have at Injader.com looks like this:

<p><i>Posted by $cmsAuthor on February 25, 2008 20:34
<br />Edited: </i> :: Hits: $intHits</p>

If I wanted to include the tags after the creation date but before the edit date, I'd do this:

<p><i>Posted by $cmsAuthor on February 25, 2008 20:34
<br />Tags: $strContTags
<br />Edited: </i> :: Hits: $intHits</p>

Because the date is already in a paragraph, we can lose the <p> ... </p> tags and just put a line break - <br /> - before the tags.

Did any of that make sense? Once you've moved things around a few times, it gets easier. And if you ever need to know what all the variables do (the ones with dollar symbols before them), just look in the list of template variables on the left-hand side of the text box. Click on any of the variables and you'll get a description. That should de-mystify a few things!

You must be registered and logged in to post comments. Log in here.
Not registered? Register now!