COMMUNITY FORUM
www.ccemagonline.com
- Kelsey Brookes
-
Topic Author
- Offline
- Elite Member
ccemagonline.com
Please Log in or Create an account to join the conversation.
- Jay D.
-
- Offline
- New Member
- Posts: 13
Did you guys really mod it out? or is it a plugin?
Thanks if you can let me know, I'm trying to work on a skateboard/snowboard site and I love your home page. I'm just having a terrible time getting the links and what not to work the way I want.
Before I forget to mention, your site is outstanding in layout and usability. Two thumbs up!
Thanks,
Jay
Please Log in or Create an account to join the conversation.
- Kelsey Brookes
-
Topic Author
- Offline
- Elite Member
The main menu links don't link directly to articles, they link to a K2 category, which is set to display up to ten articles, with read-more's, etc.
The centre column links are using multiple versions of the mod_k2_content module with varying parameters. For example, each 'category block' (such as Break on Through, Retrospective, etc) uses three mod_k2_content modules plus the MetaMod module to achieve the style on the front page. Some are set to only show a certain number of links. One module shows only one featured link, another shows up to four links from that category that are NOT featured.
Please Log in or Create an account to join the conversation.
- Jay D.
-
- Offline
- New Member
- Posts: 13
Kelsey Brookes said:Which links? The main menu at the top or for the links in the modules down the centre columns?
I made a screen shot, since it might be a bit easier to explain.
The main menu links don't link directly to articles, they link to a K2 category, which is set to display up to ten articles, with read-more's, etc.
I am fairly new to Joomla, but have been programming for years. How did you get it to link to articles.html and have it pull the category. I tried doing that, and it just 404's me.
The centre column links are using multiple versions of the mod_k2_content module with varying parameters. For example, each 'category block' (such as Break on Through, Retrospective, etc) uses three mod_k2_content modules plus the MetaMod module to achieve the style on the front page. Some are set to only show a certain number of links. One module shows only one featured link, another shows up to four links from that category that are NOT featured.
The biggest problem I am seeing is the way I have it set up, to have articles on the home page, I set up a home category, then inside that I have a reviews category, then sub reviews. Then I go to link to it on the home page, it looks domain.com/home/reviewpage I would like it to be, domain.com/reviews/subcat/reviewpage. Maybe it's the way I have it set up. I'm not a 100% sure.
Again, thanks for even taking the time out to respond!
Jay
Please Log in or Create an account to join the conversation.
- Kelsey Brookes
-
Topic Author
- Offline
- Elite Member
I think you'll find that this URL presentation is as a result of the mod_k2_content presentation - check out the links on the more obvious module categories in the centre of the page.
Please Log in or Create an account to join the conversation.
- Jay D.
-
- Offline
- New Member
- Posts: 13
Thanks again for your help! I've been searching trying to get these links to work right for a bit. And you are the only one that I have seen that has gotten it right.
J
Kelsey Brookes said:Gotcha, it's because the main article on the front page is using mod_k2_content also, rather than being the 'component' include.
I think you'll find that this URL presentation is as a result of the mod_k2_content presentation - check out the links on the more obvious module categories in the centre of the page.
Please Log in or Create an account to join the conversation.
- Kelsey Brookes
-
Topic Author
- Offline
- Elite Member
On the front page layout, I have no 'component' position, I have a module position which loads that particular iteration of the mod_k2_content module.
Please Log in or Create an account to join the conversation.
- Jay D.
-
- Offline
- New Member
- Posts: 13
Please Log in or Create an account to join the conversation.
- Kelsey Brookes
-
Topic Author
- Offline
- Elite Member
Did you build your own template? There are two ways to achieve this.
1) Build two templates
Build one solely for the front page and assign this to the menu links for 'home' (or whatever link you have to your front page). The other becomes the 'default' template. On your front page template, rather than using the jdoc component code, just use the jdoc module code instead. Assign the mod_k2_content to that module position and you're done.
2) Build one template
This is what I did, using php to determine if the 'view' was 'frontpage' that it should display a different set of code than if the view was not frontpage. This is slightly trickier, but a bit less hassle than managing multiple css stylesheets. There's plenty of discussions on this technique on the Joomla forums and I can expand a bit further if necessary.
If you've built your own template, doing option one is a total walk in the park and option two is only slightly harder.
If you're working of someone else's template and have no idea about module positions then this is probably going to be a lot harder to achieve.
Please Log in or Create an account to join the conversation.
- Jay D.
-
- Offline
- New Member
- Posts: 13
What you are saying is to duplicate the whole main index.php page, instead of having the
Missing code....s
put the in there.
Please Log in or Create an account to join the conversation.
- Jay D.
-
- Offline
- New Member
- Posts: 13
the only thing, is my links still point to:
domain.com/component/k2/item/4-test-test-test.html
where they should go to:
domain.com/gone-boarding/item/4-test-test-test.html
or:
domain.com/component/k2/item/3-the-lowdown-on-spitfire-bearings-burners.html
should go to:
domain.com/reviews/item/3-the-lowdown-on-spitfire-bearings-burners.html
Any idea on this?
And I'm going to give you a big fat link to your mag on my other high traffic site if you like, for giving me such a hand!
Please Log in or Create an account to join the conversation.
- Kelsey Brookes
-
Topic Author
- Offline
- Elite Member
download it here
Basically this says that if the 'view' is 'frontpage' then output the code for the module position fp_article, otherwise output the code for the component.
A good little module that helps find out what variables are possible is MetaMod - assign it to a module position, make it visible and turn on debug mode. Even if you're not using some of its other totally excellent features, its debugging is really useful.
So, mod_k2_content is then assigned to that position, filtering just the category we want, showing just one item - the most recent item and only featured items.
One thought I've had as to why the SEF urls are showing up oddly for you is that you may not also have a menu item pointing to that K2 category. Now that I look closer, it's interesting to me to see what K2 has done with my SEF URLs.
The category filter for the module we're talking about is set to a category called 'break on through' *NOT* 'artists'.
However I have a main menu item pointing to the 'break on through' category - this menu item is called 'artists' so it *must* be pulling the name from there.
And yeah - happy to have a big fat link! ;)
Please Log in or Create an account to join the conversation.
- Jay D.
-
- Offline
- New Member
- Posts: 13
boardersover30.com/index/item/4-test-test-test.html
where that should* be
boardersover30.com/gone-boarding/item/4-test-test-test.html (and that works because I can change it in the url box and it pulls the same link)
or
boardersover30.com/index/item/3-the-lowdown-on-spitfire-bearings-burners.html
should go to:
boardersover30.com/reviews/item/3-the-lowdown-on-spitfire-bearings-burners.html
Should I have the menu link item type point to somewhere else?
Please Log in or Create an account to join the conversation.
- Kelsey Brookes
-
Topic Author
- Offline
- Elite Member
If you check the cce mag site, the 'artists' link is the menu item pointing to that category. It's definitely got a different formulation of links than your site - what settings are you using for your SEF?
Please Log in or Create an account to join the conversation.
- Jay D.
-
- Offline
- New Member
- Posts: 13
Please Log in or Create an account to join the conversation.
- Kelsey Brookes
-
Topic Author
- Offline
- Elite Member
SEF URLs can be weird at times. I've had plenty of issues with them resolving correctly and have had to turn everything off from time to time.
Sometimes this behaviour is also a result of the order in which menu items are created.
sh404 might be your answer. The user-definable URLs are pretty cool, tho I'm not using it for this project.
Please Log in or Create an account to join the conversation.
- krmr
-
- Offline
- Senior Member
- Posts: 61
Then my problem was that for each issue (which i created like a mean category) i had fixed subcategories (such as Break on Through, Retrospective, etc), and with k2 that does not copy categories it meant that the editor would need to create them from scratch for each issue again and again. Would you comment on this as well!
The third issue I had with this structure was that for an archive meu there was no way to keep the items within the issue no matter what date/month they were published in the issue.
So, last comment on this would be appreciated.
Kelsey Brookes said:Which links? The main menu at the top or for the links in the modules down the centre columns?
The main menu links don't link directly to articles, they link to a K2 category, which is set to display up to ten articles, with read-more's, etc.
The centre column links are using multiple versions of the mod_k2_content module with varying parameters. For example, each 'category block' (such as Break on Through, Retrospective, etc) uses three mod_k2_content modules plus the MetaMod module to achieve the style on the front page. Some are set to only show a certain number of links. One module shows only one featured link, another shows up to four links from that category that are NOT featured.
Please Log in or Create an account to join the conversation.
- Kelsey Brookes
-
Topic Author
- Offline
- Elite Member
I'm not sure I understand all of your questions, but I'll do my best to answer:
1) Displaying multiple categories, but maintaining the article order per category:
I did this with multiple modules and the MetaMod module. Each category block on the front page consists of multiple modules displaying different views of the same content as per the rules in the mod_k2_content module
2 & 3) Multiple categories, reused for each issue, maintaining an issue archive
This was a point I considered carefully from the outset. I don't have each issue as a category with the magazine sections as subcategories. Each category is a parent-level category. I use K2's tagging system to tag each article with its issue. The 'Issues' menu simply aggregates all the articles tagged with the issue number.
One note on this - because the magazine is published quarterly, the exact time and date that articles are published are unimportant. Because the tag view has a fixed ordering (by date), it's important to create your articles in the right order. Or at least to be able to go back and reset the created and published dates to force the right order for the tag view.
Anyway, K2 is very flexible. There's some odd stuff that goes on, but it gives vastly more scope for complex layouts than core Joomla.
Hope that helps.
Please Log in or Create an account to join the conversation.
- krmr
-
- Offline
- Senior Member
- Posts: 61
i did in fact similar structure of the magazine like yours, but reversed. the magazine is a parent category. each issue is a category under the magazine, and the sections are tags assigned to the articles.
but this way i have a problem with creating a menu for the sections using the tagged items in category, for it uses generic layout not displaying the author.
in your magazine i see you don't give focus on the authors, you see the author only in an item-view, right? in my case it is a necessity to have the authors visible in all views, so now i wonder how to deal with this issue.
10x again
Kelsey Brookes said:Thanks for the compliment.
I'm not sure I understand all of your questions, but I'll do my best to answer:
1) Displaying multiple categories, but maintaining the article order per category:
I did this with multiple modules and the MetaMod module. Each category block on the front page consists of multiple modules displaying different views of the same content as per the rules in the mod_k2_content module
2 & 3) Multiple categories, reused for each issue, maintaining an issue archive
This was a point I considered carefully from the outset. I don't have each issue as a category with the magazine sections as subcategories. Each category is a parent-level category. I use K2's tagging system to tag each article with its issue. The 'Issues' menu simply aggregates all the articles tagged with the issue number.
One note on this - because the magazine is published quarterly, the exact time and date that articles are published are unimportant. Because the tag view has a fixed ordering (by date), it's important to create your articles in the right order. Or at least to be able to go back and reset the created and published dates to force the right order for the tag view.
Anyway, K2 is very flexible. There's some odd stuff that goes on, but it gives vastly more scope for complex layouts than core Joomla.
Hope that helps.
Please Log in or Create an account to join the conversation.
- Kelsey Brookes
-
Topic Author
- Offline
- Elite Member
Please Log in or Create an account to join the conversation.