Blog Category Listing.
Permalink
Hello all,
I need some advice on creating a Category List feature. I have already made the Date navigation and Search feature. Now I need to enable a wordpress style Category display.
I know some paid blocks are there for this feature but I want to do this manually. Any help for steps that I can do for this.
Thank you in advance.
I need some advice on creating a Category List feature. I have already made the Date navigation and Search feature. Now I need to enable a wordpress style Category display.
I know some paid blocks are there for this feature but I want to do this manually. Any help for steps that I can do for this.
Thank you in advance.
You could use Tags or even create your own page select attribute, and build a page list based on that.
@adajad
thank you for the reply. Can you please be more detail? what kind of steps I can follow.. I am very newbie to Concrete 5
thank you for the reply. Can you please be more detail? what kind of steps I can follow.. I am very newbie to Concrete 5
I think these links will get you going. Take your time reading them as they hold loads of good basic information:
http://www.concrete5.org/documentation/how-tos/editors/setting-up-a...
http://www.concrete5.org/documentation/how-tos/developers/create-a-...
http://www.concrete5.org/documentation/how-tos/developers/create-a-...
http://www.concrete5.org/documentation/using-concrete5/in-page-edit...
Basically I would create my own blog page select attribute and add my categories to that attribute. After that I would set up composer with all I want to include in the blog (image, content, my attribute...). I would also create a custom page list template to allow listing on the select attributes.
I haven't done this myself so this is just how I would go at it (after a few minutes of thinking), but hopefully someone might already had this done and can give you more pointers. Anyway, I hope this helps.
http://www.concrete5.org/documentation/how-tos/editors/setting-up-a...
http://www.concrete5.org/documentation/how-tos/developers/create-a-...
http://www.concrete5.org/documentation/how-tos/developers/create-a-...
http://www.concrete5.org/documentation/using-concrete5/in-page-edit...
Basically I would create my own blog page select attribute and add my categories to that attribute. After that I would set up composer with all I want to include in the blog (image, content, my attribute...). I would also create a custom page list template to allow listing on the select attributes.
I haven't done this myself so this is just how I would go at it (after a few minutes of thinking), but hopefully someone might already had this done and can give you more pointers. Anyway, I hope this helps.
@Adajad
thank you so much, I will take a look on them.
thank you so much, I will take a look on them.
I am just sharing this, hoping this would be a help to others.
I solved my issue by doing some tweaks. Concrete 5 already provides a Tag Cloud template with Search Block. I just used this feature and tweaked the template. Added some Ul Listing and font re-sizing, gave me a result which I wanted. I am attaching a screen shot of this result.
Now, I would like to tweak some thing more. It is the search result.I used the concrete 5 search block and directed the search result to another page which cool. But in order to do that, I have to include the Search Block on that result page. This means there will be Search Box display in the result page. For an ideal condition, this is ok, but it would be nice if I can remove/hide this Search Box display in the Result page. Any ideas or tips?
I am attaching the screen shot of this also..
Thank you.
I solved my issue by doing some tweaks. Concrete 5 already provides a Tag Cloud template with Search Block. I just used this feature and tweaked the template. Added some Ul Listing and font re-sizing, gave me a result which I wanted. I am attaching a screen shot of this result.
Now, I would like to tweak some thing more. It is the search result.I used the concrete 5 search block and directed the search result to another page which cool. But in order to do that, I have to include the Search Block on that result page. This means there will be Search Box display in the result page. For an ideal condition, this is ok, but it would be nice if I can remove/hide this Search Box display in the Result page. Any ideas or tips?
I am attaching the screen shot of this also..
Thank you.
You could just create a custom template and apply that template to your results page search block.
1. Turn off overrides cache.
2. Copy 'root/concrete/blocks/search/view.php' to 'root/blocks/search/templates/search_results/view.php'
3. Remove line 6-22 and the ending </form> tag so your new view.php has the following (make sure you view entire code block where I also added a <div> when in edit mode for easier editing):
4. Apply the new custom template to your search block on the results page. The custom template will be named 'Search Results' if you followed the instructions above.
5. Turn on overrides cache.
Test it and be amazed... ;)
EDIT:
Since you are new to c5 I can recommend these two articles
http://www.concrete5.org/documentation/how-tos/designers/change-how...
http://www.concrete5.org/documentation/how-tos/developers/change-th...
1. Turn off overrides cache.
2. Copy 'root/concrete/blocks/search/view.php' to 'root/blocks/search/templates/search_results/view.php'
3. Remove line 6-22 and the ending </form> tag so your new view.php has the following (make sure you view entire code block where I also added a <div> when in edit mode for easier editing):
<?php defined('C5_EXECUTE') or die("Access Denied."); ?> <?php if (isset($error)) { ?> <?php echo $error?><br/><br/> <?php } ?> <?php $edit_mode = Page::getCurrentPage()->isEditMode(); if($edit_mode){ echo '<div><p>Search Results here</p></div>'; //shown in edit mode for edit purposes only } ?> <?php $tt = Loader::helper('text'); if ($do_search) { if(count($results)==0){ ?> <h4 style="margin-top:32px"><?php echo t('There were no results found. Please try another keyword or phrase.')?></h4> <?php }else{ ?> <div id="searchResults">
Viewing 15 lines of 41 lines. View entire code block.
4. Apply the new custom template to your search block on the results page. The custom template will be named 'Search Results' if you followed the instructions above.
5. Turn on overrides cache.
Test it and be amazed... ;)
EDIT:
Since you are new to c5 I can recommend these two articles
http://www.concrete5.org/documentation/how-tos/designers/change-how...
http://www.concrete5.org/documentation/how-tos/developers/change-th...
@adajad
thank you so much for spending time on my query.Sure I will try with these and update the result..thanks again. :-)
thank you so much for spending time on my query.Sure I will try with these and update the result..thanks again. :-)