Forum Index
RegisterSearchFAQMemberlistUsergroupsLog in
short-story and full-story (template) - how to???

 
Reply to topic    Forum Index » Bugs and errors View previous topic
View next topic
short-story and full-story (template) - how to???
Author Message
vartroy



Joined: 18 Feb 2008
Posts: 5

Post short-story and full-story (template) - how to??? Reply with quote
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 View user's profile Send private message
Guest








Please login to hide the ads.

scottdallas



Joined: 04 May 2006
Posts: 1843
Location: US

Post Reply with quote
Old Method:
Quote:
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:
Code:
<?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 Smile
last update: 07-22-08: 8:30 pm
Sat Feb 23, 2008 1:06 pm View user's profile Send private message Visit poster's website AIM Address
Display posts from previous:    
Reply to topic    Forum Index » Bugs and errors All times are GMT + 1 Hour
Page 1 of 1

 
Jump to: 
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



Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Music Lyrics.