|
#1
|
|||
|
|||
|
hi all, I just installed the latest version of pixelpost to my server last week and so far I'm really enjoying the simplicity of this software. I'm wanting to add two information pages, and am unsure of what template to use as a baseline for text only. Also, once I create new pages, what existing templates will need to be modified with links added in order to view the new pages?
I'm using the simple template. Any info. and help would be greatly appreciated ![]() thanks! |
|
#2
|
||||
|
||||
|
It's fairly easy to create new pages.
![]() I would suggest using the browse_template.html from the simple theme to use as the basis for each new page. You would need to do "save as" with the proper template name (i.e., info page would be info_template.html; a contact page would be contact_template.html) for the filename. Once you have saved the file, open it in a plain text editor similar to Notepad (Windows) or TextEdit (Mac-make sure it is set to plain text mode per this post) and edit this section of the page Code:
<div id="page"> <span class="title">Browse Archive:</span><hr /><br /> <div align="center"> <BROWSE_CATEGORIES> <br /><br /> <THUMBNAILS> </div> </div> To add the links for the new pages, you would need to edit this section of code in all of the _template.html files in the Simple template: Code:
<span class="menu"> <a href="index.php" title="Return to Homepage">Home</a> | <a href="<SITE_BROWSELINK>" title="Browse">Browse</a> | <a href="index.php?x=about" title="About">About</a> </span> Code:
<span class="menu"> <a href="index.php" title="Return to Homepage">Home</a> | <a href="<SITE_BROWSELINK>" title="Browse">Browse</a> | <a href="index.php?x=about" title="About">About</a> | <a href="index.php?x=newpage1" title="New Page 1">New Page 1</a> | <a href="index.php?x=newpage2" title="New Page 2">New Page 2</a> </span> Hope this helps!
__________________
My photoblog: KP Images |
|
#3
|
|||
|
|||
|
... and to do it without index.php? ...
Code:
<span class="menu"> <a href="./" title="homepage">home</a> | <a href="<SITE_BROWSELINK>" title="browse">browse</a> | <a href="link" title="link">link</a> | <a href="about" title="about">about</a> </span> Code:
RewriteEngine On RewriteRule ^(browse|link|about)$ index.php?x=$1&pagenum=1 [NC] Code:
$tpl = ereg_replace("<SITE_BROWSELINK>","./index.php?x=browse",$tpl);
$tpl = ereg_replace("<SITE_BROWSELINK_PAGED>","./index.php?x=browse&pagenum=1",$tpl);
Code:
$tpl = ereg_replace("<SITE_BROWSELINK>","./browse",$tpl);
$tpl = ereg_replace("<SITE_BROWSELINK_PAGED>","./browse&pagenum=1",$tpl);
|
|
#4
|
|||
|
|||
|
thanks so much for the help- took me awhile to refind the forum, appreciate the replies
|
|
#5
|
|||
|
|||
|
Quote:
Hi, I tried your method and now my Browse becomes http://example.com/browse. However, my other links remain as index.php?x=aboutus, etc. Does anyone have any idea in correcting this such that ALL the links are now under index.php? |
|
#6
|
|||
|
|||
|
Hi,
I tried guiz's method of leaving out the index.php. However, I am only able to remove the index.php from my Browse page. Is there any other way to remove the index.php from more than one page? |
| Post Reply |
| Thread Tools | |
|
|