
Silvatti
User
Oct 19, 2006, 5:54 PM
Post #1 of 6
(1519 views)
Shortcut
|
|
[ON HOLD] Article Arrangement on Category Page
|
Can't Post
|
|
I understand AM 2.0 has just been released! Congratulations, and a big thanks to all of you for all your hard work! :D I want to present what was to me the last real major issue I needed to resolve to make sure AM could suit my needs! If AM 2 has the inherent capability/flexibility to resolve this matter more simply, let me know! :D Visually, I'm aiming to design the category index page to look this way:
Quadrant 1: Hard-coded navigational Links to category pages created by Article Manager. (See this forum thread. for reasons why. =) Quadrant 2: Links to "Full article" type entries only. Quadrant 3: "Summary Article" type entries only -- used for welcome message and category-specific updates. Quadrant 4: "Link" and "Uploaded File" entries only. In short, the goal is trying to get Article Manager to separate its articles on a page by article type. I've attached a sample /index template to demonstrate how I've been doing this so far. Lines 54 and 82 should be of particular interest: These are PHP includes for quadrants 2 and 4 of the page, respectively. What this means is I've been having to create "Articles & Essays" and "Further Resources" subcategories for each topical category I'm wanting to create (effectively tripling the size of my drop-down menu when selecting a category through the Article Creation interface). Here's an image of what my Category editor arrangement ends up looking like...
As it stands now, I need only publish a Summary article to the actual category to make an update to that category's index page (Say, the Arts & Entertainment category)... No problem. But suppose I have an essay I wish to publish in Arts & Entertainment (and have a link to it automatically appear in quadrant 2): I would need to create and publish to a separate and hidden subcategory "Articles and Essays", and use a PHP include to make the headlines appear in Quadrant 2; likewise, for External links and uploaded files, I must publish to a separate "Further Resources" subcategory, mark that as "hidden" (so as not to appear in the category listings), and use another PHP include to make its headlines appear in quadrant 4. Purely in terms of functionality, this setup works, but is extremely cumbersome. As I integrate Article Manager into my site, I've now created about 30% of the categories my site needs to have, yet already I have about 105 Categories with about 20 Essays. As I introduce other Trusted editors to the system, I can see much confusion developing over WHICH "Articles & Essays" or "Further Resources" category to publish new articles. For an alternative solution, I'm looking to use a spare art_field as a drop-down box, which will classify each Article according to its unique entry type (Essay, Commentary, Linked Resource, Uploaded audio, Uploaded presentation, etc). Users will simply publish to the topical category, and I could use a specially crafted search query/includes to call these entries to appear in their appropriate "quadrants" on the page. So in quadrant 1, I would use a search query include to locate and display all articles dubbed "Essay" in that custom art_field, for this particular category, with X many results.... Likewise, for quadrant 4, I would use a search query include to locate and display all articles dubbed either "uploaded_audio", "linked_resource", etc in that custom art_field for this particular category, with X many results... The end effect is that no matter what type of input, all the user has to do is specify by a spare Art_field drop-down box what type of entry this is, and not have to know just which "subcategory" under Arts & Entertainment he needs to find to publish in the correct location. So I suppose after all this my question would be.. how would I construct such a search query/include to place on my index templates?
(This post was edited by Silvatti on Oct 26, 2006, 1:54 PM)
|