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:
Trouble with includes

 

 


Dennis de Rooy
User

Nov 20, 2003, 8:34 AM

Post #1 of 13 (4660 views)
Shortcut
Trouble with includes Can't Post

Hi all,

I'm having trouble using the includes on a page. I have tried every path-to the files I want to include-I can think of. Can you tell me what I'm doing wrong? I'm clueless.

The page in which I use the includes, is in the publish folder. I'll ask for support via the form so you have the FTP stuff, so you can have a look on the server.

The page in which I want to use the includes is: http://www.strengholtmultimedia.nl/cms/publish/nieuwetitels.shtml

I know it's kinda of a mess, but I wanted to use every possible path.

Thanks for your help. I'm getting desperate


Luke
Staff / Moderator


Nov 21, 2003, 1:06 PM

Post #2 of 13 (4645 views)
Shortcut
Re: [Dennis de Rooy] Trouble with includes [In reply to] Can't Post

Hi Dennis,

Thanks for the post! :)

I responded to your initial support email that came through the support form. It looks like you were able to get Server Side Includes enabled on the server, but some of the paths for your includes are incorrect (being the reason you're receiving errors for some of them). If you reply to my email I'll take a closer look and let you know what the correct paths are.

And in the mean time, if you have any other questions please feel free to let me know! :)

Luke Holzken
Product Development


Dennis de Rooy
User

Nov 26, 2003, 3:42 AM

Post #3 of 13 (4615 views)
Shortcut
Re: [Luke] Trouble with includes [In reply to] Can't Post

Hi Luke,

Thanks for your help. The problem was the provider, they said SSi's were enabled but it turned out it wasn't.

Now I have another problem.Frown

Actually, I need to use the headline pages of some categories, twice... But both with another layout. How do I do this? I tried to use a webfeed, but untill now without succes. The biggest issue is adding article fields in the syndicate.js. Or can I use the headlines template in a different way?

Cheers, Dennis


(This post was edited by Dennis de Rooy on Nov 26, 2003, 4:05 AM)


Eric
Product Specialist


Nov 26, 2003, 2:59 PM

Post #4 of 13 (4603 views)
Shortcut
Re: [Dennis de Rooy] Trouble with includes [In reply to] Can't Post

Hi Dennis,

Thank you for the forum post. Smile

You can use SSIs, custom template files, and search.cgi to create multiple headlines with different format requirements on the same page. Here's how:

1. Copy the entire contents of /search/search_results.html and paste the text to two new HTML files. Let's call them headlines_left_column.html and headlines_right_column.html.
2. Customize the format of the two template files in step 1 to match your design requirements for the headlines.
3. Add the following lines in your index page where you want the headlines to display:

<!--#include virtual="/cgi-bin/artman/exec/search.cgi?perpage=5&cat=3&template=headlines_left_column.html" -->

and

<!--#include virtual="/cgi-bin/artman/exec/search.cgi?perpage=5&cat=3&template=headlines_right_column.html" -->

note:

* for Windows servers, you need to replace "#include virtual" with "#exec cgi"
* "perpage=5" = 5 article/headlines on the page.
* "cat=3" = limit article list to a specific category
You can find out a category's number by moving your mouse over the modify link and examining the status bar at the bottom of your web browser. The last number shown on the status bar is the category number you need. If you need to include multiple categories, do this: cat=3,4,5
* "template=headlines_left_column.html" = specifies the template to use.

You can see how this approach allows you to display the same headline information in different formats on the same page. If you have any other questions please feel free to let me know! :)
Cheers,
Eric Lau - Product Specialist
support@interactivetools.com


etips4u
New User

May 13, 2005, 1:51 PM

Post #5 of 13 (3988 views)
Shortcut
Re: [Eric] Trouble with includes [In reply to] Can't Post

Hi Eric

I have follow your procedure ....


Code
 <!--#include virtual="/cgi-bin/artman/exec/search.cgi?perpage=5&cat=29&template=Headlines_Left_Column.html" --> 
<!--#include virtual="/cgi-bin/artman/exec/search.cgi?perpage=5&cat=31&template=Headlines_Right_Column.html" -->
<br><hr>



but it's giving me some errors:


Quote
[an error occurred while processing this directive] [an error occurred while processing this directive]



The address is Expat-Village.com

If you could give me some pointers, will be greatly appreciated..

Jose

P.D.: Just in case...


Quote


Server Software

Apache/1.3.33 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 PHP/4.3.9 FrontPage/5.0.2.2634a mod_ssl/2.8.21 OpenSSL/0.9.7a

Perl version

5.008001 (linux)

mod_perl

not available



Knoledge is Power...
...and It's Free...



MikeB
Staff / Moderator


May 14, 2005, 11:53 AM

Post #6 of 13 (3977 views)
Shortcut
Re: [etips4u] Trouble with includes [In reply to] Can't Post

Hi Jose,

Thanks for the post! Smile

I took a quick look at your site and I think you'll just want to make one change to your Server Side Includes (SSI) to get them up and running.

I noticed that on the www.expat-village.com website the search.cgi script is being run from outside of the /cgi-bin/ directory.

This means you should actually be able to change your SSI to actually look something like this:


Code
<!--#include virtual="/path/to/artman/exec/search.cgi?perpage=5&cat=29&template=Headlines_Left_Column.html" --> 
<!--#include virtual="/path/to/artman/exec/search.cgi?perpage=5&cat=31&template=Headlines_Right_Column.html" -->


You'll just want to have a look on the server to see where the /artman/ directory is actually located and replace "/path/to/" with the actual path to /artman/.

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.


etips4u
New User

May 17, 2005, 5:49 PM

Post #7 of 13 (3920 views)
Shortcut
Re: [MikeB] Trouble with includes [In reply to] Can't Post

TX a lot for you answer.... I haven't see that one Crazy ..... I'll check it out and do all the modifications...

IŽll keep U posted...

Bye & thanks again.. Wink

Jose


Knoledge is Power...
...and It's Free...



biruel
User

May 23, 2005, 6:42 AM

Post #8 of 13 (3862 views)
Shortcut
Re: [MikeB] Trouble with includes [In reply to] Can't Post


In Reply To
Hi Jose,

Thanks for the post! Smile

I took a quick look at your site and I think you'll just want to make one change to your Server Side Includes (SSI) to get them up and running.

I noticed that on the www.expat-village.com website the search.cgi script is being run from outside of the /cgi-bin/ directory.

This means you should actually be able to change your SSI to actually look something like this:


Code
<!--#include virtual="/path/to/artman/exec/search.cgi?perpage=5&cat=29&template=Headlines_Left_Column.html" --> 
<!--#include virtual="/path/to/artman/exec/search.cgi?perpage=5&cat=31&template=Headlines_Right_Column.html" -->


You'll just want to have a look on the server to see where the /artman/ directory is actually located and replace "/path/to/" with the actual path to /artman/.

I hope this helps and if you have any other questions feel free to let me know! Smile


Hello, Im from Brazil and no speak yor language Unsure

Error:
Program Message

Sorry, the template you've requested is not a registered template.
my path for search cgi = cgi-local/artman/exec/search.cgi

my path for template search = cgi-local/artman/templates/search/c1.html

my code for index page = <!--#include virtual="/cgi-local/artman/exec/search.cgi?perpage=1&cat=3&template=c1.html" -->

Help


Cliff
Staff


May 23, 2005, 11:54 AM

Post #9 of 13 (3843 views)
Shortcut
Re: [biruel] Trouble with includes [In reply to] Can't Post

Hi biruel,

Thanks for posting.

Just change the SSI code to look like this and everything should be fine:


Code
<!--#include virtual="/cgi-local/artman/exec/search.cgi?perpage=1&cat=3&template=search/c1.html" -->


Give that a try and let me know how it goes Smile
Regards,
Cliff Stefanuk - Customer Service Manager
support@interactivetools.com


Garbracht
User

Sep 10, 2006, 5:31 AM

Post #10 of 13 (2444 views)
Shortcut
Re: [Eric] Trouble with includes [In reply to] Can't Post

Hello Eric,

I read many of the posta in the forum and managed to display different featured articles on different index page. But i want to list additinaly the headlines of the other articles. I put the following code in my index\default template:

...

<!--#include virtual="/cgi-bin/artman/exec/search.cgi?template=index/featured_default.html&perpage=1&start=1
&cat=$cat_num$">

<br>

<!--#include virtual="/cgi-bin/artman/exec/search.cgi?template=index/main_default.html&perpage=
5&start=2&cat=$cat_num$">

<!-- 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_date">$art_date$</span><br>

...

But only the first include is carried out. If I shift the position of both, the second, now in position above display the list. Both includes are running standing alone but not in combination.

Can anyone help me?

Thanks in advance

Clemens

www.steel-grips.com


ChetW
Staff


Sep 10, 2006, 5:43 PM

Post #11 of 13 (2427 views)
Shortcut
Re: [Garbracht] Trouble with includes [In reply to] Can't Post

Hi Clemens,

Thanks for the post!

Your includes appear to be set-up okay, I would suggest filling out a support request with your ftp information this way we will be able o log on to your system and take a closer look at what may be causing this issue for you. :)

You can fill out a supoprt request here:

https://www.interactivetools.com/support/email_support.cgi

Once we have this information I will be happy to look into this for you!
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.



Theo
Project Manager / Moderator


Sep 11, 2006, 12:37 PM

Post #12 of 13 (2414 views)
Shortcut
Re: [Garbracht] Trouble with includes [In reply to] Can't Post

Clemens:

Some of your includes are slightly mis-formed, missing the two hyphens that close the include tag. For example:

<!--#include virtual="/cgi-bin/artman/exec/search.cgi?template=index/featured_default.html&perpage=1&start=1&cat=$cat_num$">

Should be:

<!--#include virtual="/cgi-bin/artman/exec/search.cgi?template=index/featured_default.html&perpage=1&start=1&cat=$cat_num$" -->


Theo Wiersma
Project Manager


Garbracht
User

Sep 12, 2006, 3:34 AM

Post #13 of 13 (2385 views)
Shortcut
Re: [Theo] Trouble with includes [In reply to] Can't Post

Hi, Theo,

thaks a lot for your qick reply. Your support does an excellent job!

I dont know why I did not find this error myself Crazy maybe it was to late in the night.

The includes are now working perfectly.

Sorry for the inconveniece

Clemens

 
 
 


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