Hello everyone!
I have created test site using tutorials provided in previous posts and all went fine and smooth. Now, I came to the most important part of my future site - Articles. And I'm, confused! And more, I went back to check the structure of the site and found more errors without any logic (to me, of course). Here's what happened...
PROBLEM #1:
Site structure and what it's all about (pages, subpages and what are they used for):
-
Home (homepage, supposed to show 10 newest articles from all categories or subcategories)
-
Nightlife (homepage to category "Nightlife", showing 10 newest articles from all of it's subcategories)
- - Theatre (a subcategory to "Nightlife", showing all articles tagged as "theatre")
- - Cinema (a subcategory to "Nightlife", showing all articles tagged as "cinema")
- - Music Pubs (a subcategory to "Nightlife", showing all articles tagged as "music pubs")
-
Page 2 (pretty much the same as the page "Nightlife")
-
Page 3 ...
-
Page 4 ...
-
Page 5 ...
At this point I'm using one template and one css for all of the pages and subpages. But subpage "Theatre" is not showing up in front-end the way it should! There is no css used but it should be! I have created this subpage as duplicate of "Nightlife" and then I have chosen "Parent Resource" to be that "Nightlife" page… Web developer tool is showing error - can't find linked css files. Css files are hardcoded in template <head> section but it seems this is not working with subpages. Maybe an Pretty URL issue? This is css call in <head> section:
<base href="[(site_url)]" />
<link rel="stylesheet" type="text/css" media="all" href="assets/css/idemvantest.css" />
PROBLEM #2:
Working with plugins…
Maybe I have missed something while reading tutorials or completely misunderstood something about plugins basics but I can't figure out how to achieve this:
- I wanted to place dynamic placeholder for Articles in Content field of my homepage. I did it and now I can see a list of titles of all of my Articles there. Then I wanted to use the same principle in "Theatre" subpage but only for Articles tagged with "theatre". And I just can't make it work… If I use
[[+tags? &tags=`theatre`]]
I get a list of the most commonly used tags within all of the Articles. Yes, I know it's a placeholder for showing exactly that list but since I'm not familiar with MODx yet, and I'll never be familiar with writing code, I've tried to use it with some tweaks but obviously I was wrong...
And of course, I wasn't able to find anything useful on this topic on internet, so... If you guys have some ideas how to solve this, please let me know.
Thank you in advance and have best regards from rainy Croatian coast!
Bruces