Main
Index
Search
Posts
Who's
Online
Log
In

Home: Discontinued/Classic Products: Article Manager 1 Add-ons:
creating your own placeholders

 

 


glevine
User

Dec 22, 2005, 2:20 PM

Post #1 of 4 (2934 views)
Shortcut
creating your own placeholders Can't Post

I am curious if it is possible to create your own placeholders in a similar way that the images work. I would like to be able to insert a right aligned table, that contains related links, a few paragraphs into the content. I assume that would mean a writer would have to do something like place "***related:right***" somewhere in the content field. I haven't tried to figure out if I can hack something like this. I thought it would be best to ask about it first. Especially since it's possible that there is a better way to do this and I just haven't thought of it. Thanks


Cliff
Staff


Dec 23, 2005, 11:32 AM

Post #2 of 4 (2922 views)
Shortcut
Re: [glevine] creating your own placeholders [In reply to] Can't Post

Hi glevine,

Thanks for posting.

Article Manager will only recognize it's own tags, so it's not going to recognize a placeholder that isn't part of the system.

This is something that we are including in the current upgrade to Article Manager, so in the next version you will be able to create your own custom placeholder.

I hope that helps explain, but let me know if you need any more details Smile
Regards,
Cliff Stefanuk - Customer Service Manager
[email]support@interactivetools.com[/email]


carminejg3
User

Dec 30, 2005, 10:08 AM

Post #3 of 4 (2859 views)
Shortcut
Re: [Cliff] creating your own placeholders [In reply to] Can't Post

Hi I was trying to grab the category related included.

<!-- INCLUDE TOP HEADLINES (from this category) -->
<!--#include virtual="$publishdir_virtualpath$$file_headlines$" -->

To create a similar related links box, but it also includes the header. Is it possible to create a dup of this just to include the related links?

or would i need to modify the default related articles headline include and chop out the header so i could get my list of articles.


Webmaster [wink]
http://news.carjunky.com


MikeB
Staff / Moderator


Dec 30, 2005, 4:44 PM

Post #4 of 4 (2854 views)
Shortcut
Re: [carminejg3] creating your own placeholders [In reply to] Can't Post

Hi,

Thanks for the post! Smile

There are a couple of things you should be able to do if you'd like to show a couple of articles from this category at the bottom of an article.

First, you could use the method you described and remove the formatting from the template that Article Manager uses for it's headlines. The only drawback with this is that you wouldn't really be able to use these headlines elsewhere on the site as they'd be really stripped down.

The other option is to actually include some search results on your article page. To do this you would make a copy of /artman/templates/search/search_results.html and call this copy search_results_related.html. You'd then strip out any external code (headers and footers etc.) so the only code remaining is the code inside the templatecells that actually outputs the articles.

Then, on your article template (/artman/templates/article/default.html) you would use an include that looks like this:

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

The include above will bring in 5 results from the same category as the article on your new template file.

Give this a try and let me know how it works for you. Don't hesitate to ask if you have any other questions about this! Smile

Cheers,
Mike Briggs - 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]