
Damon
Staff
/ Moderator

Nov 17, 2006, 9:25 AM
Post #6 of 7
(1202 views)
Shortcut
|
|
Re: [Jesus] Articles types (URL's)
[In reply to]
|
Can't Post
|
|
Hi, Here are the steps to have the article title link to another webpage (similiar to URL article types in Article Manager 1): 1) Go to Admin > Database, and click "edit table & fields" for Articles. 2) Field Label is "URL", Name is "url", and Field Type is text field. 3) Stored as "string" 4) Click Save, then you'll be on the Table Editor page where you can update the Field Order to your tastes (for example move field to near the top). 5) Open and edit your articleList templates: /templates/articleLists/globalIndex.html /templates/articleLists/categoryHeadlines.html Replace this code: <a href="$published.articlePage.url$" class="summary_title">$article.title$</a> With this code: <!-- templateIf : $article.url$ eq "" --> <a href="$published.articlePage.url$" class="summary_title">$article.title$</a> <!-- /templateIf --> <!-- templateIf : $article.url$ ne "" --> <a href="$article.url$" class="summary_title">$article.title$</a> <!-- /templateIf --> Replace this code: [ <a href="$published.articlePage.url$">Read More...</a> ] With this code: <!-- templateIf : $article.url$ eq "" --> [ <a href="$published.articlePage.url$">Read More...</a> ] <!-- /templateIf --> That's it. Log in and enter a web address in the URL field and that article will now publish with that web address as the article title link. I hope this helped and made sense. :) Let us know if you need any other details or have more questions. --------------------------------------------------- Cheers Damon Edis interactivetools.com Hire me! Save time by getting our experts to help with your project. http://www.interactivetools.com/consulting/
(This post was edited by Damon on Nov 17, 2006, 1:11 PM)
|