 | |  |
 |

Heather
User
Aug 19, 2008, 4:19 AM
Post #1 of 4
(4128 views)
Shortcut
|
|
Group by date Global Headlines, Author email link, Category & Subcategory publish directories
|
Can't Post
|
|
1st question: Say I wanted my global headlines page to have 7 days worth of postings. How would I get it to where the headlines are grouped by date? An example to what I want: Tuesday, August 19, 2008 All of Tuesday's headline links go here Monday, August 18, 2008 All of Monday's headline links go here Sunday, August 17, 2008 All of Sunday's headline links go here etc... 2nd question: On all the posting pages, how do I make the author's name an email link? 3rd question: How do I get the subcategory to publish into the parent category directory? Currently, my server settings are that my publish directory is the same as my root directory. I want it to where my subcategories are created inside their parent category directory. An example of what I currently have: mydomain.com/sports/ mydomain.com/football.html I'm trying to achieve this: mydomain.com/sports/ mydomain.com/sports/football/index.shtml The structural look of my categories & subcategories in the global menu looks fine, the way it should. But the urls don't match up with the structural look.
|
|
|  |
 |

Jake
Staff
/ Moderator

Aug 20, 2008, 12:45 PM
Post #2 of 4
(3976 views)
Shortcut
|
|
Re: [Heather] Group by date Global Headlines, Author email link, Category & Subcategory publish directories
[In reply to]
|
Can't Post
|
|
Hi Heather, Thanks for posting! In regards to your question about headlines, there isn't really a way to set this up in Article Manager since pages aren't generated dynamically. This means that the software can't automatically detect that an article should belong under a certain area of a page based on the date. Did you have a field set up for an author's email in Article Manager? If not, you can set one up by going to Admin -> Database Editor and then clicking the "edit table & fields" link. You'd want to add this is a text field type. Once you've done that, you can edit your templates to add in the email link. Right now, this is probably the placeholder used for your author: $article.author$ If you named your email field "email", you could use this code to create those links: <a href="mailto:$article.email$">$article.author$</a> Note that your old articles won't have the "email" field filled out, so you would have to go back through them and add this information. To get your category structure working the way you'd like, you'll need to edit your category file names by accessing the "Categories" link and the top of the page when logged into Article Manager, and then by clicking the "modify" link for your subcategories. Currently, your file name might be set to "football" for example. To get this to publish within the "sports" directory, you would change the filename to "/sports/football" instead of "football". Let us know if you have any other questions. ----------------------------------------------------------- Cheers, Jake Swanson - 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.
|
|
|  |
 |

Heather
User
Aug 20, 2008, 3:06 PM
Post #3 of 4
(3966 views)
Shortcut
|
|
Re: [Jake] Group by date Global Headlines, Author email link, Category & Subcategory publish directories
[In reply to]
|
Can't Post
|
|
Thanks much Jake for the answers.
you can set one up by going to Admin -> Database Editor and then clicking the "edit table & fields" link. Which edit table & fields link? There's 4 different one - User Accounts, Articles, Category, and Publish Rules. I ussume you mean User Accounts but want to make sure before proceeding. I still want to talk to about the group by date headline links feature that I wanted. You said it's not possible. Before moving to AM2 I was using a similar CMS, I won't mention the name, but it does have the ability to use that group by date headlines feature. This is the code that it uses:
<If: Sub: isNewDate> <Field: Weekday>, <Field: Month_Name> <Field: Day>, <Field: Year> </If> <A HREF="fileurl">filetitle</A> I see that AM2 uses a lot of "if" statements. Could the above not somehow be adapted to work? I was thinking of something like:
<If: Sub: isNewDate> <Field: Weekday>, <Field: Month_Name> <Field: Day>, <Field: Year> </If> <!--#include virtual="$published.globalHeadlines.webpath$" --> Obviously that would not work as is. I'm sure there are other things (templates, database tables, etc?) that need those conditional statements added and/or modified. Thats just a starting example. The point is to see if that code could be modified and adapted to AM2 so this feature becomes a reality.
(This post was edited by Heather on Aug 20, 2008, 4:47 PM)
|
|
|  |
 |

Donna
Staff
/ Moderator

Aug 21, 2008, 11:33 AM
Post #4 of 4
(3929 views)
Shortcut
|
|
Re: [Heather] Group by date Global Headlines, Author email link, Category & Subcategory publish directories
[In reply to]
|
Can't Post
|
|
Hi Heather, It'll be the "Article" table. To decide which one to use, take a look at the placeholders in question. For example, $article.author$ tells you you're looking at the "Article" table, and the "Author" field within. For grouping the headlines by date... it would be possible to write an Artman "If" statement to display headlines matching that date... but the only way I could see making it work would require you to update the date in the template every day. Even then, it would be pretty kludgy. :/ 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.
|
|
|  |
|