Home | Products | Consulting | Forums | Support | Order | 1-800-752-0455
  Main
Index
Search
Posts
Who's
Online
Log
In

Home: Discontinued Products: Article Manager 1:
How do I make "More headlines" link to different template?

 

 


Zoey
User

Aug 10, 2006, 1:52 PM

Post #1 of 9 (1567 views)
Shortcut
How do I make "More headlines" link to different template? Can't Post

I'm re-creating our wonderul site using AM (love it!).

I'm basically making our homepage out of the "index/defualt.html" template - so it will just publish as our homepage "index.shtml".

However - when people click the "More articles" at the bottom of the list of "Latest articles" it continues the list and uses the same template file - therefore it looks like they were just sent back to the homepage.

example: http://www.rvtravel.com/dev3

Any suggestions?

Thanks! - Zoey


Mike4172
User

Aug 10, 2006, 3:59 PM

Post #2 of 9 (1565 views)
Shortcut
Re: [Zoey] How do I make "More headlines" link to different template? [In reply to] Can't Post

On the /cgi-bin/artman/templates/index/defalt.html file find:


Code
<a href="$more_url$">More Headlines</a>


Then change to


Code
<a href="/cgi-bin/artman/exec/search.cgi?search=1&template=index/new.html">More Headlines</a>


This is assuming you create a new file in /index/ called new.html. In the new.html you can customize it to how you want it to look on the secondary pages.

Regards,
Michael
NEW!Logo and Website Design
Auto Post Date and Expiration
GoForum 2.02
http://www.amscripts.net
SKYPE - michael.amscripts


MikeB
Staff / Moderator


Aug 11, 2006, 11:11 AM

Post #3 of 9 (1548 views)
Shortcut
Re: [Zoey] How do I make "More headlines" link to different template? [In reply to] Can't Post

Hi Zoey,

Thanks for the post! Smile

It looks like Mike's suggestion should work quite well for you. I've actually had a look at your site and it looks like the index page of this development section is now linking to a different template file for the next page of results.

If you do have any other questions or comments about this, just let me know! Smile

Cheers,
Mike Briggs - Product Specialist
support@interactivetools.com


Hire me!
Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.


Garbracht
User

Sep 12, 2006, 3:14 AM

Post #4 of 9 (1442 views)
Shortcut
Re: [Mike4172] How do I make "More headlines" link to different template? [In reply to] Can't Post

Thanks for this post! It exactly soved my problem.

I tried to add one single term: &cat=$cat_num$ at the end

<a href="/cgi-bin/artman/exec/search.cgi?template=index/default.html&perpage=6&start=7&cat=$cat_num$">More Headlines</a>

but the category number is not added to the URL. (it works in the include line)

Do I have to add some charactres?

www.steel-grips.com -> newsDesk -> business news


ross
Staff / Moderator


Sep 12, 2006, 9:05 AM

Post #5 of 9 (1436 views)
Shortcut
Re: [Garbracht] How do I make "More headlines" link to different template? [In reply to] Can't Post

Hi there.

Thanks for posting!

Using cat=$cat_num$ in your link should do the trick when you are on any of the category index pages. The only place this won’t actually work as you were expecting is on the global index page as that doesn’t actually have a category number to display.

Does that help? Let me know if you would like anymore details Smile.
-----------------------------------------------------------
Cheers,
Ross Fairbairn - Product Specialist
support@interactivetools.com


Hire me!
Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.




Garbracht
User

Sep 12, 2006, 9:26 PM

Post #6 of 9 (1428 views)
Shortcut
Re: [ross] How do I make "More headlines" link to different template? [In reply to] Can't Post

Hello, Ross,

thanks for the quick reply.

...cat=$cat_num$... in the link does not work but cat=20 does. The system does not accept he variable $cat_num$ but accepts the hard coded number. As a workaround I wrote one specific template for each category with the hard coded category number.

When I have to make amodification in the link it must be made in every template and when I add a category a new template has to be added manually.

Why does $cat_num$ not work? How can I fix it?

Clemens

www.steel-grips.com newsdesk


Donna
Staff / Moderator


Sep 13, 2006, 10:58 AM

Post #7 of 9 (1422 views)
Shortcut
Re: [Garbracht] How do I make "More headlines" link to different template? [In reply to] Can't Post

Hi there,

Which page are you adding this to? The $cat_num$ placeholder only works on category index pages -- it will not return anything on the main index page. Can you give me the URL of the page that you're using this placeholder on?

Donna


Hire me!
Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.


Garbracht
User

Sep 13, 2006, 11:24 AM

Post #8 of 9 (1420 views)
Shortcut
Re: [Donna] How do I make "More headlines" link to different template? [In reply to] Can't Post

Hello, Donna,

thanks for your sudden answer.

I use the link on: http://www.steel-grips.com/newsdesk/publish/cat_index_1.shtml

for example and the "More Headlines" link points to:
http://www.steel-grips.com/cgi-bin/artman/exec/search.cgi?template=index/default_o.html&cat=1&start=8

The template default_o is the original template without featured article. cat=1 is hardcoded in this case. Here I would like to use the placeholder.

Gerrtings from Germany

Clemens


ChetW
Staff


Sep 13, 2006, 2:38 PM

Post #9 of 9 (1413 views)
Shortcut
Re: [Garbracht] How do I make "More headlines" link to different template? [In reply to] Can't Post

Hi Clemens,

Thanks for the extra information!

I have looked over your site and it appears that you are indeed trying to use $cat_num$ on a category index page. You should be able to use the $cat_num$ placeholder, however it is a little hard to know why this isn't working for you without actually looking at your template file.

What you may want to do is post your template file or if you prefer to net have your files posted, then a private message or filling out a support request would work. Once I have your template files I will be happy to look further into this issue for you. :)

I look forward to hearing back from you Clemens!
Cheers,
Chet Woodside - Product Specialist
support@interactivetools.com


Hire me!
Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.


 
 
 


Search for (options)
Products
CMS Builder
Article Manager
Realty Manager
Listings Manager
Order Now
Services
Priority Consulting
Support
Online Documentation
Support Forums
Support Homepage
Company Info
12 reasons to choose us!
Meet the team
Monthly newsletter
Contact Us
Toll Free: 1-800-752-0455
Phone: (604) 689-3347
Sales | Support
Conditions of Use | Privacy Policy | Copyright © interactivetools.com 2008
#201 - 2730 Commercial Drive, Vancouver BC Canada V5N 5P4