Main
Index
Search
Posts
Who's
Online
Log
In

Home: Discontinued/Classic Products: Article Manager 1:
Creating a Links page

 

 


KrazyKat
User

Jul 8, 2006, 8:45 AM

Post #1 of 6 (1808 views)
Shortcut
Creating a Links page Can't Post

I have created a links page by using and modifying instructions in a previous post.

http://www.interactivetools.com/forum/gforum.cgi?post=32688

When Links is clicked in the left-hand column, I want the article Name and Summary to be displayed on the resulting page. I have created a new template called Links, based on my index/default template, then modified this section as follows:

<!-- templatecell : row -->
<table border=0 cellspacing=0 cellpadding=0 width=100%>
<tr>
<td><span class="article_text">
<span class="article_title">$art_name$</span><br>
<br>
</span>
</td>
<td align=right valign=top>
<span class="article_text">
</span>
</td>
</tr>
</table>
<span class="article_text">
$art_content$
</span>
<!-- /templatecell : row -->

(I used the instructions from the previously-mentioned post, I don't really know what a lot of the code means.)

This way I can have several articles representing the different link categories and all have them appear on one page, which is accessed directly by clicking Links without having to go to a category index page.

This is working more or less the way I want it to, but I need to make a few changes and don't know how to do it.

Firstly, there is not enough space in between each article.

Secondly, I don't know how to add "Email this page" and "Printer friendly page" to the page so that it is in the same position as on a regular article page.

Thanks very much! Smile


(This post was edited by KrazyKat on Mar 1, 2007, 5:00 PM)


ross
Staff / Moderator


Jul 9, 2006, 8:54 AM

Post #2 of 6 (1799 views)
Shortcut
Re: [KrazyKat] Creating a Links page [In reply to] Can't Post

Hi there.

Thanks for posting!

To add more space between “Cooking” and the link above it, I would just add a <p> tag at the beginning of your template cell like this:


Code
<p> 
<!-- templatecell : row -->
<table border=0 cellspacing=0 cellpadding=0 width=100%>
<tr>


Then for the links, try replaceing this line:

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

With all of this:


Code
     <table border=0 cellspacing=0 cellpadding=0 width=100%> 
<tr>
<td><span class="article_text">
<span class="article_title">$art_name$</span><br>
</span>
</td>
<td align=right valign=top>
<span class="article_text">
<a href="mailto:?subject=$art_name_ue$&body=$detail_link_ue$">Email&nbsp;this&nbsp;article</a><br>
&nbsp;<a href="$art_printer_url$">Printer&nbsp;friendly&nbsp;page</a><br>
</span>
</td>
</tr>
</table>


That will get your email and printer links in there. Have a go at this and let me know how you make out. Remember to republish your articles after adjusting your template 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/



KrazyKat
User

Jul 9, 2006, 4:07 PM

Post #3 of 6 (1789 views)
Shortcut
Re: [ross] Creating a Links page [In reply to] Can't Post

Hi Ross,

Thanks for the reply.

It didn't work to put the <p> tag BEFORE the <!-- templatecell : row --> line, but I tried putting it AFTER that line and it seemed to work.

For the second part, when I added that text to the code, "Email this article" and "Printer friendly page" appear to the right of EACH links section, whereas I wanted it just once at the top of that entire page.

Thanks! Smile


(This post was edited by KrazyKat on Mar 1, 2007, 5:01 PM)


ChetW
Staff


Jul 10, 2006, 10:11 AM

Post #4 of 6 (1781 views)
Shortcut
Re: [KrazyKat] Creating a Links page [In reply to] Can't Post

Hi.

Thanks for the follow-up. :)

To place the "Email this article" and the "Printer friendly page" links only once at the top of the page you will want to replace the <!--templatecell: row --> code with the bit of code listed below:



Code
<p> 
<span class="article_text">
<a href="mailto:?subject=$art_name_ue$&body=$detail_link_ue$">Email&nbsp;this&nbsp;article</a><br/>
<a href="$art_printer_url$">Printer&nbsp;friendly&nbsp;page</a><br/>
</span>
</p>

<!-- templatecell : row -->
<table border=0 cellspacing=0 cellpadding=0 width=100%>
<tr><td>&nbsp;</td></tr>
<tr><td>
<span class="article_title">$art_name$</span><br/>
<span class="article_text">$art_content$</span>
</td></tr>
</table>
<!-- /templatecell : row -->


This code will place the "Email this article" and the "Printer friendly page" at the very top of your page aligned to the left.

After that all your article information will appear. You may want to give this a try and let me know how things work out for you.
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]


KrazyKat
User

Jul 11, 2006, 11:10 AM

Post #5 of 6 (1770 views)
Shortcut
Re: [ChetW] Creating a Links page [In reply to] Can't Post

Hi Chet,

Thanks for the response!

I now have the links page looking the way I want it, except... when "Printer friendly page" is clicked, it doesn't seem to be basing it on my standard Printer friendly page.

I'd like it to follow my standard format, but am not sure how to do this.

Thanks!


(This post was edited by KrazyKat on Mar 1, 2007, 5:02 PM)


ChetW
Staff


Jul 12, 2006, 2:56 PM

Post #6 of 6 (1755 views)
Shortcut
Re: [KrazyKat] Creating a Links page [In reply to] Can't Post

Hi KrazyKat,

Thanks for the update. :)

What you could do to fix this is created a stripped down printer friendly styled "links.shtml" template file, then direct the links section "printer friendly" page to the new template you have created.

To do this follow the steps below:

- Make a copy of the template file that creates your "links.shtml" page, lets call this file "printer_links.html".

- Open your new "printer_links.html" file and remove all the uneeded information (i.e page header, and navigation), when you are happy with the changes save your file.

- Upload this new "printer_links.html" file into the /templates/ directory on your server.

- Next open the actual template file that creates your "links.shtml" page, and find this following bit of code:


Code
<a href="$art_printer_url$">Printer&nbsp;friendly&nbsp;page</a><br/>


Change this code to:


Code
<a href="/cgi-bin/artman/exec/search.cgi?search=1&perpage=X$template=templates/printer_links.html">Printer&nbsp;friendly&nbsp;page</a><br/>


Notice the X in the code above, you will want to change this X to the number of articles perpage to be displayed.

For example replacing the X with 10 would display 10 articles per page.

Does this make sense KrazyKat? You might want to give this a try and see how it works for you!

If you have any further questions please don't 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]