Main
Index
Search
Posts
Who's
Online
Log
In

Home: Discontinued/Classic Products: Article Manager 1:
Articles are currently added manually on the default page

 

 


fluffballs
Novice

Jul 27, 2006, 5:31 AM

Post #1 of 9 (4268 views)
Shortcut
Articles are currently added manually on the default page Can't Post

On the website www.shootandgoal.com our clients are adding new articles but the newest aren't displayed on the default.html because they removed the coding and they have to enter the title, description etc manually.

What is the code I have to enter in the default page in order to fix this problem and for the articles to be displayed automatically on the default page?


ChetW
Staff


Jul 28, 2006, 1:13 PM

Post #2 of 9 (4257 views)
Shortcut
Re: [fluffballs] Articles are currently added manually on the default page [In reply to] Can't Post

Hi,

Thanks for the post!

If I understand correctly you are not currently using Article Manager on your index page, all your new articles on the main index page are being entered manually through an html editor. Is this correct?

If so what you may want to do is take a look at this default.html template I have attached with this post.

The area to watch for is where the <!-- template insert: $article_list$ --> tag appears, this tag tells article manager to place the articles here.

Underneath that you will see a series of templatecells, each templatecell has and opening and closing tag that look like this:

Opening:
<!-- templatecell: row -->

Closing:
<!-- /templatecell: row -->

Inside the opening and closing tags of each templatecell you will find basic HTML code that looks similar to this:


Code
<span class="summary_breadcrumb"><a name="$art_num$">$cat_breadcrumb$</a></span><br> 
<span class="summary_title"><a href="$detail_link$">$art_name$</a></span><br>
<span class="summary">$art_summary$</span><br>
<span class="summary_date">$art_date$, $art_time$<br clear="all"></span>


This HTML code tells Article Manager how the information for that templatecell will be displayed. The article information itself is drawn from the tags that have dollar signs around them.

For example $art_summary$ tells the software to place the article summary inside the opening <span> and closing </span> tags.

So what you will want to do is add the <!-- template insert: $article_list$ --> code unto the current default.html page you are using. Next you will want to add all the opening and closing templatecell tags to your page. Inside of these templatecells and your HTML code.

This should help give you an overview of how to add the code needed so that Article Manager generates article information on the homepage for you.

I would suggest taking some time to look over the attached "default.html" file, also you may want to take a look at the following tutorial which explains how the template system works for Article Manager

http://www.interactivetools.com/products/articlemanager/tutorials/templates101.html

Does this help? If you have any other questions please don'r hesitate to ask. :)
Cheers,
Chet Woodside - Product Specialist
support@interactivetools.com

[hr][i][url "http://www.interactivetools.com/consulting/"][b]Hire me![/b][/url]
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 [url "http://www.interactivetools.com/consulting/"][b]Priority Consulting[/b][/url].[/i]


fluffballs
Novice

Jul 30, 2006, 10:38 PM

Post #3 of 9 (4237 views)
Shortcut
Re: [ChetW] Articles are currently added manually on the default page [In reply to] Can't Post

thanks for the reply! but i think you forgot to attach the default.html Wink


ross
Staff / Moderator


Jul 31, 2006, 11:31 AM

Post #4 of 9 (4233 views)
Shortcut
Re: [fluffballs] Articles are currently added manually on the default page [In reply to] Can't Post

Hi there.

Thanks for pointing that out Smile.

Chet isn’t actually in the office this week so I can’t double check with him but it looks like he was just going to be attaching the default template to his post for you.

What that means is you already have it Smile. On your server in the artman folder there is going to be a templates folder. In that one will be an index folder and in there is a file called default.html

That’s what Chet was going to be sending you. Have a look at that and follow along with Chet’s walk through and that should get you going.

Of course, if you need anymore details, let us know as we are all here to help 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: http://www.interactivetools.com/consulting/



fluffballs
Novice

Sep 18, 2006, 2:09 AM

Post #5 of 9 (4057 views)
Shortcut
Re: [ross] Articles are currently added manually on the default page [In reply to] Can't Post

hi.

Extremely late reply from me sorry :)

The thing is I can't use that file because it has been edited... can someone please maybe upload it for me?


Donna
Staff / Moderator


Sep 18, 2006, 8:52 AM

Post #6 of 9 (4049 views)
Shortcut
Re: [fluffballs] Articles are currently added manually on the default page [In reply to] Can't Post

Hi there!

Feel free to grab the latest version of the software here:

http://www.interactivetools.com/upgrade/

This includes the default templates, and will have the one that you're looking for as well. :)

Donna

--
support@interactivetools.com


fluffballs
Novice

Oct 13, 2006, 11:45 AM

Post #7 of 9 (3877 views)
Shortcut
Re: [Donna] Articles are currently added manually on the default page [In reply to] Can't Post

I have been trying to work this out and i'm totally confused

I want to add the first new news item in a larger area than the rest. and I need it to look like this: www.shootandgoal.com (all the articles on this page are currently added manually in a html editor)

So i've played around with the code abit and added a few tags and i'm not sure but will this: http://www.shootandgoal.com/cgi/artman/templates/index/default_sample.html work? I can't upload it and replace the default.html page because this page has alot of traffic. What I did though is place different snippets of code in a table to display everything where i want them...

My other question is. How will I add the other 6 news items with their images? since the image will be displayed smaller? (if you scroll down you will see this too)

I'm totally confused with this so i'm really sorry about my silly questions.


ChetW
Staff


Oct 14, 2006, 2:02 PM

Post #8 of 9 (3846 views)
Shortcut
Re: [fluffballs] Articles are currently added manually on the default page [In reply to] Can't Post

Hi,

Thanks for the extra information!

If I understand correctly you are hoping to have a unique "breaking news" type section that will be displayed at the top of your index page. The breaking news section will display an Article a little bigger and slightly different then the rest of your article summaries also, is this correct?

If so what you will want to so is create a uniques template that is applies to your breaking news section, then you will use a server side include to display your breaking news articles based on this custom layout for only these articles. :)

The ens result will be a breaking news section that is a little bigger and laid out a little differently than the rest of your article summaries. Does this sound like what you are looking for?

If so follow the steps below:

1. To create the custom breaking news template file you are going to strip down the "search_results.html" template file. Login to your web server and navigate to the /templates/search directory, this directory is usually found in your /cgi-bin/.

2. Inside the /templates/search/ directory find and download your "search_results.html" template file to your local computer. Next create a copy of the search_results.html template file, call this copy "breakingnews_search_results.html".

3. Edit your newly created "breakingnews_search_results.html" template file so that it only uses the code needed to display your article summary, the results may look similar to this:


Code
  

<div style="background-color:#cccccc; padding:10px;">

<!-- template insert :$article_list$ -->

</div>



<!-- templatecell : row -->

<span class="summary_breadcrumb"><a name="$art_num$">$cat_breadcrumb$</a></span><br>

<span class="summary_title"><a href="$detail_link$">$art_name$</a></span><br>

<span class="summary">$art_summary$</span><br>

<span class="summary_date">$art_date$, $art_time$<br clear="all"><br></span>

<!-- /templatecell : row -->



<!-- templatecell : row_summary -->

<span class="summary_breadcrumb"><a name="$art_num$">$cat_breadcrumb$</a></span><br>

<span class="summary_title">$art_name$</span><br>

<span class="summary">$art_summary$</span><br>

<span class="summary_date">$art_date$, $art_time$<br clear="all"><br></span>

<!-- /templatecell : row_summary -->



<!-- templatecell : row_link -->

<span class="summary_breadcrumb"><a name="$art_num$">$cat_breadcrumb$</a></span><br>

<span class="summary_title">$art_name$</span><br>

<span class="summary">$art_summary$</span>

<span class="summary">[&nbsp;<a href="$detail_link$" target="_blank">Visit&nbsp;Website</a>&nbsp;]</span><br>

<span class="summary_date">$art_date$, $art_time$<br clear="all"><br></span>

<!-- /templatecell : row_link -->



<!-- templatecell : row_ufile -->

<span class="summary_breadcrumb"><a name="$art_num$">$cat_breadcrumb$</a></span><br>

<span class="summary_title">$art_name$</span><br>

<span class="summary">$art_summary$</span>

<span class="summary">[&nbsp;<a href="$detail_link$" target="_blank">Download/View&nbsp;File</a>&nbsp;]</span><br>

<span class="summary_date">$art_date$, $art_time$<br clear="all"><br></span>

<!-- /templatecell : row_ufile -->



<!-- templatecell : not_found -->

<span class="summary">Sorry, no articles were found.</span><br>

<!-- /templatecell : not_found -->

<!-- templatecell : img_caption -->

<table border=0 cellspacing=2 cellpadding=0 width=$img_width$ align=$img_align$>

<tr><td><img src="$img_url$" height="$img_height$" width="$img_width$" border=1></td></tr>

<tr><td><span class="image_caption">$img_caption$</span></td></tr>

</table>

<!-- /templatecell : img_caption -->

<!-- templatecell : img_nocaption -->

<table border=0 cellspacing=2 cellpadding=0 width=$img_width$ align=$img_align$>

<tr><td><img src="$img_url$" height="$img_height$" width="$img_width$" border=1></td></tr>

</table>

<!-- /templatecell : img_nocaption -->

<!-- template insert : $prev$ -->

<!-- templatecell : prev -->

<!-- /templatecell : prev -->



<!-- templatecell : no_prev -->

<!-- /templatecell : no_prev -->

<!-- template insert : $next$ -->

<!-- templatecell : next -->

<!-- /templatecell : next -->



<!-- templatecell : no_next -->

<!-- /templatecell : no_next -->

<!-- template insert : $more$ -->

<!-- templatecell : more -->

<!-- /templatecell : more -->



<!-- templatecell : no_more -->

<!-- /templatecell : no_more -->



You will want to edit the above example so that your actual layout plans are reflected in the "breakingnews_search_results.html" template file.

4. Once you are happy with the results of your newly created breaking news template file save the changes and upload this file to your /templates/search/ directory.

5. Next we will need to edit your index default.html file so that it has the following code:


Code
<!--#include virtual="/path/to/your/search.cgi?search=1&cat=$cat_num$&start=1&perpage=3&template=search/breakingnews_search_results.html" -->



To do this navigate to your /templates/index/ directory on the web server and look for your "default.html" template file, download this file to your local computer.

6. Create a back-up of the default.html template file and then add the above bit of code to the spot on your page where you want your breaking news article summaries displayed.

7. The code you have just added is your server side include this code will display your breaking news articles based on the new template you have created (template=search/breakingnews_search_results.html ) and show three breaking news articles (perpage=3) starting at your first article (start=1).

8. Save the changes to your default.html" files and re-upload this file back to your /templates/index/ directory. For the last step you will want to login to Article Manager and republish all your articles, you will now see your breking nes section on your index pages. :)

Give this a try and if you have any othe questions please feel free to ask!








Cheers,
Chet Woodside - Product Specialist
support@interactivetools.com

[hr][i][url "http://www.interactivetools.com/consulting/"][b]Hire me![/b][/url]
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 [url "http://www.interactivetools.com/consulting/"][b]Priority Consulting[/b][/url].[/i]


fluffballs
Novice

Oct 15, 2006, 2:45 AM

Post #9 of 9 (3842 views)
Shortcut
Re: [ChetW] Articles are currently added manually on the default page [In reply to] Can't Post

wow thanks for this.
I'll give it a try and let you know! Smile