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.

jeevanism
 
adajad replied on at Permalink Reply
adajad
You could use Tags or even create your own page select attribute, and build a page list based on that.
jeevanism replied on at Permalink Reply
jeevanism
@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
adajad replied on at Permalink Best Answer Reply
adajad
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.
jeevanism replied on at Permalink Reply
jeevanism
@Adajad

thank you so much, I will take a look on them.
jeevanism replied on at Permalink Reply 2 Attachments
jeevanism
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.
adajad replied on at Permalink Reply
adajad
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):
<?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">

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...
jeevanism replied on at Permalink Reply
jeevanism
@adajad

thank you so much for spending time on my query.Sure I will try with these and update the result..thanks again. :-)