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:
Using $detail_link$ with images

 

 


alyates
User

May 18, 2006, 9:34 AM

Post #1 of 21 (4573 views)
Shortcut
Using $detail_link$ with images Can't Post

For the lead story on my site I just want it to be an image without any headlines or other text. I was hoping that dropping the $detail_link$ placeholder into the <a href> tag for the template cell for the images.

The result of this is that the image is linking back to whatever page it is being displayed on.

I did a search and saw the solution using the caption to do something similar but that adds extra steps in the article creation process I was hoping to avoid.

Thanks,
Adam


MikeB
Staff / Moderator


May 19, 2006, 2:49 PM

Post #2 of 21 (4552 views)
Shortcut
Re: [alyates] Using $detail_link$ with images [In reply to] Can't Post

Hi Adam,

Thanks for posting! Smile

From what you've mentioned it's a bit tough to see what might be happening on your site the way it's currently set up. If you could post a link to your site (or email a link to support@interactivetools.com) I'd be happy to have a look at it for you.

If you're just hoping to have one article on your site above the rest of your content that has been set to be the "Lead Story" then you can just let me know and I can outline the steps to do this for you. The method will just involve using a Server Side Include and should give you the results you're looking for.

I hope this helps and if you have any other questions feel free to 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.


observer
New User

Aug 17, 2006, 8:49 AM

Post #3 of 21 (4413 views)
Shortcut
Re: [MikeB] Using $detail_link$ with images [In reply to] Can't Post

I realize this is an old thread, but I would be interested in being able to run a lead story (ie: one article above the rest).

I would appreciate seeing the steps outlined.

Thanks!

Mitch


MikeB
Staff / Moderator


Aug 19, 2006, 2:18 PM

Post #4 of 21 (4393 views)
Shortcut
Re: [observer] Using $detail_link$ with images [In reply to] Can't Post

Hi Mitch,

Thanks for the post! Smile

I'll outline the steps of how to get one Featured Article above the rest of your content on the index page of your site.

1. First, you'll want to make a copy of /templates/index/default.html and call this /templates/index/category.html. Within Article Manager you'll want to set up each of your categories to use "category.html" as the template file for their index pages. You can make this change in the "Category Editor" section of the admin program.

2. Next, you'll want to get onto your server and save two copies of /artman/templates/search/search_results.html. You can call one front_page_headlines.html and you can call the other featured_headline.html.

3. In these two files you can strip out all of the external HTML (headers, footers, menus, etc) and just leave in the templatecells and HTML that will actually output the search results. Generally you'd want to set up featured_headline.html to output the headline in a bit larger font and maybe include an image with this article so that's why I've set up two different templates. One will be used for the larger, featured article while the other template will be used for the rest of the headlines you'll have on your index page. You can save these files back onto your server here: /artman/templates/search/.

3. Now, on your /templates/index/default.html file (after you've made a backup) you'll want to add a couple of Server Side Includes (SSI) that will look like this:

<!--#include virtual="/path/to/search.cgi?search=1&perpage=1&template=search/featured_headline.html" -->
<!--#include virtual="/path/to/search.cgi?search=1&perpage=10&start=2&template=search/front_page_headlines.html" -->

You'll just want to have this include use your actual path to the search.cgi script. The first include brings in the most recent article and displays this first with your "Featured" template. The second include brings in the next 10 articles below this using the other template that you created in step 2 and 3.

Once you've set up this SSI you can play around with this to add a couple more to different parts of this page.

I hope this helps and if you have any other questions 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.


Sauron
Novice

Sep 1, 2006, 9:12 PM

Post #5 of 21 (4325 views)
Shortcut
Re: [MikeB] Using $detail_link$ with images [In reply to] Can't Post

What does it really do? Can i see a screenshot/demo/or an explaination of how it will look like and what it really does?


ChetW
Staff


Sep 3, 2006, 12:33 PM

Post #6 of 21 (4312 views)
Shortcut
Re: [Sauron] Using $detail_link$ with images [In reply to] Can't Post

Hi,

Thanks for the post!

You can use "Featured Articles" on your site in many different ways, some users will create a diffferent background color for their featured articles so then not only are these article at the top of the page but they also have a different look then the rest of your article summaries.

For example you can look at the link below:

http://www.kenyanewsnetwork.com/index.shtml

This particular website has their "Featured Articles" set-up so that they appear at the top of the page with a brief summary and an image (if the article has an image). Next they have a section of google adwords followed by the rest of their article summaries which they have set-up to only be displayed as title links.

Does this answer your question? If you have any further questions please don't hesitate to ask!
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.



adidas
User

Sep 8, 2006, 1:03 PM

Post #7 of 21 (4255 views)
Shortcut
Re: [ChetW] Using $detail_link$ with images [In reply to] Can't Post

Hey i think i am trying to do the same, but not sure.

Could you check this website out at http://www.auto-talk.net/

I am wondering how would i put something like Featured News and More News blocks like it is coming up on that site. Does it have something to do with RSS Feeds? If yes or no, how do i achive this?

Thanks.


(This post was edited by adidas on Sep 8, 2006, 1:05 PM)


ross
Staff / Moderator


Sep 9, 2006, 12:42 PM

Post #8 of 21 (4243 views)
Shortcut
Re: [adidas] Using $detail_link$ with images [In reply to] Can't Post

Hi there.

Thanks for posting!

Article Manager actually creates a separate file for each category that has just a list of the most recent headlines in that category. To get a page going like you linked us to here, I would just setup several includes that point to the different headlines files of the categories you wanted to have appear.

Does that sound like it would work? Let me know and I can go into more detail on how to set that up 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.




adidas
User

Sep 9, 2006, 5:30 PM

Post #9 of 21 (4239 views)
Shortcut
Re: [ross] Using $detail_link$ with images [In reply to] Can't Post

Well the question is that would i be able to achive the same thing like on that site. If yes, please let me know. That site i guess uses something like a Joomla CMS and just parses the rss feeds or has something to do with the "includes" which i have no idea what they are. Please look at the site again and let me know if that look can be achive. If yes, please give me step by step instruction to setup something like it.

I appreciate your response.
Thank you.


(This post was edited by adidas on Sep 9, 2006, 5:30 PM)


ChetW
Staff


Sep 10, 2006, 10:17 AM

Post #10 of 21 (4231 views)
Shortcut
Re: [adidas] Using $detail_link$ with images [In reply to] Can't Post

Hi

Thanks for the post!

I have looked over http://www.auto-talk.net, you could achieve the same effect using Article Manager and server side inlcudes. The www.auto-talk.net website has three main categories displayed on its homepage.

Each of these three categories has a "featured' article on the left side and then a "latest headlines" section on the right side. To do this follow the steps below:

Create the Grid for these sections:

The first thing you will want to do is actually create the layout for a set-up like this, one way you could do this is by using a table inside the middle content area. Your table may look like this:


Code
<table>  

<tr>

<td></td>

<td></td>

</tr>

<tr>

<td></td>

<td></td>

</tr>

<tr>

<td></td>

<td></td>

</tr>

</table>



Looking at the code above you will notice that there are three tablerows (<tr>) with two tablecells (<td>) inside each tablerow, you will want to edit the layout of this table to suit your design needs. Inside these tablecells (<td>) is where you place the server side includes. For example the above table with the server side includes may look like this:


Code
  

<table>

<tr>

<td><!--#include virtual="/path_to/your_/search.cgi?perpage=1&cat=1&template=search/custom_search_results_template.html" --></td>

<td><!--#include virtual="/path/to/your/publish/cat_headlines_1.shtml"--></td>

</tr>

<tr>

<td><!--#include virtual="/path_to/your_/search.cgi?perpage=1&cat=2&template=search/custom_search_results_template.html" --></td>

<td><!--#include virtual="/path/to/your/publish/cat_headlines_2.shtml"--></td>

</tr>

<tr>

<td><!--#include virtual="/path_to/your_/search.cgi?perpage=1&cat=3&template=search/custom_search_results_template.html" --></td>

<td><!--#include virtual="/path/to/your/publish/cat_headlines_3.shtml"--></td>

</tr>

</table>



Next we will go over what each of the includes used above does, lets start with this one:


Code
  

<!--#include virtual="/path_to/your_/search.cgi?perpage=1&cat=3&template=search/custom_search_results_template.html" -->



This include will run return 1 article (perpage=1) from category 3 (cat=3) and use a unique template to display the results. Changing the "perpage" value to say 3 will make it so that three articles are displayed instead of 1.

The category number (cat=3) can be found by logging in to your Article Manager admin section and selecting 'Categoy Editor'. Inside this section you will see a list of your categories, hovering over the 'Modify' button will display code at the bottom of your browser similiar to this:


Code



The number located after "cat_edit=" is the category number, placing this number at the end of "cat=" will tell Article Manager which category to display the articles from. So for each of the three include that look like this:


Code
  

<!--#include virtual="/path_to/your_/search.cgi?perpage=1&cat=3&template=search/custom_search_results_template.html" -->



You will want to edit the "cat=" to have the category number for whichever category articles you would like displayed there. :)

Next we will cover the unique template that is called at the end of this string of code (template=search/custom_search_results_template.html). The "custom_search_results_template.html" is a template that we will create based off of the "search_results.html" template that can be found inside your /templates/search/ directory on your web server.

What you will want to do is create a copy of the "search_results.html" template and call it "custom_search_results_template.html" edit the design of this new template to suit the design needs of your "featured" tablecell. Once you are finished editing the new "custom_search_results_template.html" file save it and place it back into the /templates/search/ directory on your webserver. :)

Now you are finished setting up the include for your "featured" sections this include:


Code
  

<!--#include virtual="/path_to/your_/search.cgi?perpage=1&cat=3&template=search/custom_search_results_template.html" -->



Will now display the number of articles you want (perpage=1) based on the categories of your choosing (cat=1) and will be displayed inside the tablecell based on the design you made in the "custom_search_results_template.html" file. :)

All we have left to do know is go over the include that is used for your "headlines" section on the right side. The include used for this section looks like this:


Code
  

<!--#include virtual="/path/to/your/publish/cat_headlines_3.shtml"-->



This include links to the headlines file for category 3, you will want to change the number at the end of "cat_headlines_" to the number for the actual category whose headlines that you would like displayed. You may also want to control the actual number of headlines displayed to do this follow these steps:

1. Login to your Article Manager admin section and select 'Category Editor', you will then want to select 'Modify' for the category that you want to change.

2. Inside the selected categories 'Modify' screen you will change the "Articles per page" setting, select the radio button and choose the number of articles and headlines that you would like displayed. The amount of articles will control how many articles you will see when your looking at that actual category. The amount of headlines displayed will control how many category headlines are displayed. :)

Also remember to save the HTMl file that you placed this table into as an .shtml file, this will allow the server side includes to work for you!

This should give you a good start towards setting up the multi column category display that you are looking for! If you have any other questions please don't hesitate to ask. :)
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.



adidas
User

Sep 12, 2006, 9:35 PM

Post #11 of 21 (4208 views)
Shortcut
Re: [ChetW] Using $detail_link$ with images [In reply to] Can't Post

Sir thanks for all that help but my index page doesn't use .shtml ending it is in .php just like the http://www.auto-talk.net website. Now is it still possible that some how i can achive that same look? Auto-talk.net uses joomla and thats what i am using.

Thanks


Donna
Staff / Moderator


Sep 13, 2006, 4:29 PM

Post #12 of 21 (4192 views)
Shortcut
Re: [adidas] Using $detail_link$ with images [In reply to] Can't Post

Hi there,

Thanks for your post. :)

Yes, absolutely! Just change the SSI's to PHP includes, and you can still do the same thing. The syntax for a PHP include would be:


Code
 
<?php include("../artman/publish/$file_headlines$"); ?>


Let me know if that works for you. :)

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.


adidas
User

Sep 16, 2006, 12:41 PM

Post #13 of 21 (4145 views)
Shortcut
Re: [Donna] Using $detail_link$ with images [In reply to] Can't Post

To make it simple for a newbie like me. Is it possible for someone to create an instuction like Chet did for php include in php instead of SSI's?


adidas
User

Sep 18, 2006, 8:46 PM

Post #14 of 21 (4075 views)
Shortcut
Re: [adidas] Using $detail_link$ with images [In reply to] Can't Post

Can any one create instuctions like Chet did but for php page because i am not using a .shtml page.

Also need more detail on

/path_to/your/

What is that? Also how would i make it appear on my index.php? I just have to copy paste the code that Chet gave me in the index.php file? Pirate and it will autmatically parse links?

Help needed. Thanks.


Donna
Staff / Moderator


Sep 19, 2006, 12:05 PM

Post #15 of 21 (4058 views)
Shortcut
Re: [adidas] Using $detail_link$ with images [In reply to] Can't Post

Hi there,

Take a look at the post I made -- if your Article Manager is still in the default location where we put it, the snippet I gave you will work. Or, you can replace the filename placeholder (the $file_headlines$) with the actual filename that you want to include, if you know which file you want to include.

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.


adidas
User

Sep 25, 2006, 6:22 PM

Post #16 of 21 (3957 views)
Shortcut
Re: [Donna] Using $detail_link$ with images [In reply to] Can't Post

So how do i add the PHP Includes in there in the appropriate designation? I have made the custom search template etc. Just want to include now. I didn't know what you meant by path/etc.. So here is my information.

My user name on the server is: kpnetwor
domain name: kpnetworks.com
server path for for search.cgi is: '/home/kpnetwor/public_html/cgi-bin/news/exec/search.cgi'
server path for a category is: '/home/kpnetwor/public_html/news/publish/kpnews1.php'
domain path for search.cgi: http://www.kpnetworks.com/cgi-bin/news/exec/search.cgi
domain path for category is: http://www.kpnetworks.com/news/publish/kpnews1.php

Please bare with the domain. I just need to know how to put up the proper includes in the proper cells.

1) #############FEATURED ARTICLE PHP INCLUDE##################

2) ##########ARTICLE NAME WITH LINKS AND CATEGORY NAME#########

See the attach text file for the above designations, and then just include the PHP includes in there by seeing my information above to make it easier for me. :)

Thanks.


(This post was edited by adidas on Sep 25, 2006, 6:29 PM)
Attachments: TEST1.txt (4.12 KB)


ChetW
Staff


Sep 27, 2006, 10:39 AM

Post #17 of 21 (3905 views)
Shortcut
Re: [adidas] Using $detail_link$ with images [In reply to] Can't Post

Hi,

Thanks for the post!

If I understand correctly you would like to know how the php includes would look, is this correct?

If you are basing the php includes on the tutorial I provided above then the includes would look like this:


Code
<?php include ("/cgi-bin/news/exec/search.cgi?perpage=1&cat=1&template=search/custom_search_results.html"); ?>  

<?php include ("/news/publish/kpnews1.php"); ?>



and would be placed inside your <tr> tags like so:


Code
  

<tr>

<td><?php include ("/cgi-bin/news/exec/search.cgi?perpage=1&cat=1&template=search/custom_search_results.html"); ?></td>

<td><?php include ("/news/publish/kpnews1.php"); ?></td>

</tr>



Does this help? If you have any other questions please don't hesitate to ask!
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.



adidas
User

Sep 28, 2006, 12:01 PM

Post #18 of 21 (3857 views)
Shortcut
Re: [ChetW] Using $detail_link$ with images [In reply to] Can't Post

1. #############FEATURED ARTICLE PHP INCLUDE##################

The above code has only one <td> If i paste a php include like this.

<td>#############FEATURED ARTICLE PHP INCLUDE################## </td>

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

<td><td><?php include ("/cgi-bin/news/exec/search.cgi?perpage=1&cat=1&template=search/custom_search_results.html"); ?></td>

<td><?php include ("/news/publish/kpnews1.php"); ?></td>

</td>

It will mess up my template. Please search for #############FEATURED ARTICLE PHP INCLUDE################## in the attached file which i attached before. I have already created a table. I was wondering if in one <td> i am able to have PHP Include for instance Featured Article. And on the other <td> on the right side i am able to have a PHP Include for More News.

Please see the attach file i attached in my earlier post. To find out what i am talking about. If you have any questions please let me know so i can be more clear.

Thanks.


ChetW
Staff


Sep 28, 2006, 12:13 PM

Post #19 of 21 (3854 views)
Shortcut
Re: [adidas] Using $detail_link$ with images [In reply to] Can't Post

Hi,

Thanks for the update!

You are able to put one include in each <td> cell tag! On the last post I had left a reference on how a simple table with one tablerow and two tablecells would look with the php includes placed inside each tablecell. Considering that you already have the table and tablecells set-up on your template then all you will need to do is place one php include inside of each tablecell. :)

Does this help? Feel free to let me know if you need more help!
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.



adidas
User

Sep 29, 2006, 6:56 PM

Post #20 of 21 (3834 views)
Shortcut
Re: [ChetW] Using $detail_link$ with images [In reply to] Can't Post

Can you open my template and paste the php include in there? I am still confused. Ah!! I know. I suck at it.

Feel free to remove these ....

#############FEATURED ARTICLE PHP INCLUDE##################

I will appreciate it a lot!

Thanks.


ross
Staff / Moderator


Oct 1, 2006, 9:17 AM

Post #21 of 21 (3800 views)
Shortcut
Re: [adidas] Using $detail_link$ with images [In reply to] Can't Post

Hi.

From what I can see, the only thing that would need to be adjusted is the duplicated <td> tag. Instead if having:


Code
<td><td><?php include ("/cgi-bin/news/exec/search.cgi?perpage=1&cat=1&template=search/custom_search_results.html"); ?></td>


Use this:


Code
<td><?php include ("/cgi-bin/news/exec/search.cgi?perpage=1&cat=1&template=search/custom_search_results.html"); ?></td>


Notice how I removed that second <td> tag right at the beginning? Now, it’s actually a little difficult for me to edit the template myself because I won’t be able to test it out.

What I think would be best is if you could try removing that <td> and then describe what happens (if you are still not getting the results you were expecting). Basically, I would need a little more detail that just the fact that it messes up your template Smile. So you know, there is also the possibility that something on the file being included is what is throwing things off here so lets make sure the first page is setup properly so we can troubleshoot from there.

Keep me up to date with how you are making out 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.



 
 
 


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