 |
 |
 |
 |
 |
| Author |
Message |
vartroy
Joined: 18 Feb 2008 Posts: 5
|
|
short-story and full-story (template) - how to??? |
|
Hello guys,
i´m an old user of original cutenews and i´m having a lot of doubts in how this new one works... The top of those is relationed with the templates, short-story, full-story and the new link system.
Well... in the old cutenews, you just create a template where you describe what should stay in active-news and full-news (i´m considering only this both...). So, if i would like to do something like this ...
active news:
---------- {title} ----------
[link]{short-story}[/link]
-----------------------------
full news:
---------- {title} ----------
------{short-story}-------
-----------------------------
<center>{full-story}</center>
-----------------------------
... i could, and the system shows the news in using the template that i have set for title, short-story and full-story.
Now, in this one, we have some different things... right??? So, i don´t know how to, for example, create one template to active-news and full-news and use this with the short-story and full-story... everytime that i call a full story, my system get the main page address and getenate the full news page if the source of this one (main page) without the full-news template that i have set for this one... so... the full news template does not work anymore??? Or i need to create a lot of main pages??? I do not understand how it realy works... if i have one template with active and full news created, why i could not use this one??? For example... in the old one, even if i use include('show_news.php'); i could use the template that was set... how can i do in this new one without need to open the full story in a different page???
In a short way, i would like to create one template setting active and full news... than, i create one page called aaa.php where i will make the include text and calls the template that was created... and... when i click in the link to the full news, i would like the full story load the template that i had set in the aaa.php page... like in the old one...
i do not know if i could be clear... my english is not so good... but i think that everybody could understand...
see you
|
|
| Fri Feb 22, 2008 6:03 pm |
|
 |
Guest
|
|
|
Please login to hide the ads.
|
|
|
|
 |
scottdallas

Joined: 04 May 2006 Posts: 1843 Location: US |
|
|
|
Old Method:
 |  | active news:
---------- {title} ----------
[link]{short-story}[/link]
-----------------------------
full news:
---------- {title} ----------
------{short-story}-------
-----------------------------
<center>{full-story}</center>
----------------------------- |
New Method
active news:
---------- {title} ----------
<a href="{link=home/post}">{short-story}</a>[/link]
-----------------------------
full news:
---------- {title} ----------
------{short-story}-------
-----------------------------
<center>{full-story}</center>
-----------------------------
Use include codes like:
 |  | <?php
$number = "5";
$category = "6";
$template = "dearbeth";
include("cutenewsru/show_news.php");
?> |
{link=home/post} refers to information found in 1) System Settings > Path to main page and 2) Your urls.ini file (found at Options > User Friendly URL's)
{link=home/post} goes in your href like shown above and outputs a URL like:
http://www.nameofyoursite.com/index.php/title-of-your-content.html
Modify short and full story as you always do and specify desired template in your include code.
_________________ www.scottdizzle.com uses cnr
last update: 07-22-08: 8:30 pm |
|
| Sat Feb 23, 2008 1:06 pm |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
|
 |
 |
 |
|