Editing "Calendar of Events" and breadcrumbs help

Home Forums Calendar Products Events Calendar PRO Editing "Calendar of Events" and breadcrumbs help

Viewing 15 posts - 1 through 15 (of 24 total)
  • Author
    Posts
  • #15511
    Ken
    Participant

    I currently have 2 categories of events. When the page “/events/category/cat1/” is rendered I get:
    Calendar of Events › Cat1
    Since I already have a breadcrumb above this I want to render it like this:
    Cat 1
    Basically Remove “Calendar of Events ›”. Do I have to edit an event template to do this?

    Also when visiting the page “/events/” or “/events/month/” it displays:
    Calendar of Events
    Can I change this text? Can they be separate titles when viewing the grid and list views?
    SIDEBAR: I am using Breadcrumb NavXT for my breadcrumbs and it seems to be doing great with my other Custom Post types. But when viewing “/events/” or “/events/month/” I am only getting the “Home” link in the breadcrumbs. I know its not your plug-in but any idea if there is a conflict with this plug-in and ECP?

    #15529
    Rob
    Member

    Hey Ken. You can change the Calendar of Events title in the 2.0.4 code (which should be released this week sometime), but in the current release it’s much more complex. If you want the 2.0.4 code early shoot an email to pro /a/ tri.be referencing this thread and I’ll hook it up.

    Let me see if Jonah has any ideas on the breadcrumb issue you noted…I’ve sent this his way and he’ll respond accordingly if he does. I’ll run it up the flagpole if he doesn’t 🙂 Cheers.

    #15572
    Ken
    Participant

    Hi Rob,

    Thanks for the link to the download as well as the code.

    It does allow me to change the grid view to include the text that I want.

    However, on the list view I still see “calendar of events >” before the event category. I want to remove that link so that it reads just the event category. Even if I use CSS to display:none for the h1 a tag the “>” is still going to be visible. Is this a ecp-page-template.php file modification?

    One additional think I noticed is that when you click on the number for a specific date (lets say the “28” for the month of Feb.) in grid view. The follow up page uses the same h1 title as the grid view now, which may not be relevant.

    Would it be possible to have more useful information like “Events for the day of Feb 28, 2012”? Would that be possible by just be using the function you supplied and adding a conditional tag? The head tag has the title tag doing this in the top of the browser window, so it seems like it should be doable…

    #15579
    Rob
    Member

    Hey Ken. Thanks for the follow-up; I’ll get Jonah to take a look and see if he can offer up anything there, too.

    #15603
    Jonah
    Participant

    Hi Ken,

    There are probably some things our plugin is doing to not work well with the breadcrumbs plugin but you’re going to have to work it out on your own. We’ve got plans to change the way we do some of the calendar views and templating which I think will help with these types of conflicts in the future but right now the customization is too complex to help with.

    However, and related to your other question about the title on specific dates, this may point you in the right direction to fix the breadcrumbs. If you are using the “Default Events Template” yes you can modify ecp-page-template.php and conditionally set the title depending on what view you are in. Here is an example:


    if(tribe_is_month()) {
    echo 'Calendar Grid';
    } else if(tribe_is_event() && !tribe_is_day() && !is_single()) {
    echo 'Event List';
    } else if(tribe_is_event() && !tribe_is_day() && is_single()) {
    echo 'Single Event';
    } else if(tribe_is_day()) {
    echo 'Single Day';
    } else {
    the_title();
    }

    You’re basically going to want to use the same thing if you are instead using the “Default Page Template” and/or for conditionally setting your breadcrumb trail.

    I hope this helps,
    Jonah

    #15664
    Ken
    Participant

    Thanks Jonah, That makes sense for displaying the title I think that I can get it figured out. I’ll have to look into the breadcrumbs more…

    I Do notice now (Since the Upgrade) that on my event list pages the first event has the title of the page instead of the event…If have events pagenated and when I click the second page the first event also is rendered with the title of the page as well.

    #15769
    Rob
    Member

    Hey Ken: can you elaborate on your last note, regarding the change since the upgrade? Even better, would you mind noting it in this thread (https://theeventscalendar.com/support/forums/topic/release-the-events-calendarpro-2-0-4/), along with a screenshot if possible, so we don’t distract from the main point here? Want to get this fixed if we introduced something in 2.0.4. Thanks in advance.

    #15847
    Ken
    Participant

    Hi Rob, After I updated with the official downloads for free and pro versions the issue went away.

    I however, was also tweaking code and dealing with custom post types; so it’s possible that it was just something on my end, and not from the download link you sent me for the pre-released version.

    I will let you know if it happens again.

    #15854
    Rob
    Member

    Thanks Ken. Glad to hear this is gone away, whether from the plugin update or from the changes you’ve made yourself. If this arises again let us know and we’ll do what we can to assist.

    #15859
    Ken
    Participant

    ok I was able to replicate the issue, and it was the code I am using.

    Taking Jonah’s suggested code above I was trying to find the right tags to create the title of the page for ‘grid’ to be “Monthly Calendar”, for ‘event lists’ to be the category of the list , for the ‘single day’ I was hoping for “Events for (insert date)”. I attempted to use the_title() for each of the conditional statements (except for grid view) since that view was not changing and the above code was fine. But that might not be the right tag. wp_title() would be good but it leaves a separator on the page titles that I dont want and also includes “upcoming events” in the list view that I dont want there either.

    The event list view however returns the title of the first event in the list. For single day if there is no event that day it is blank. I could not get “Single Event” text to ever appear on a page, I am assuming that is overridden by the ecp-single-tempate.php? So if that conditional statement needed?

    Is there another tag that I dont know about that I should be using instead of the_title()? I tried tribe_meta_event_category_name() but that didn’t seem to help either.

    I hope this all make sense…Thanks in advance you guys for helping me with this.

    #15861
    Julien
    Participant

    To use a breadcrumb plugin, first do this fix

    "has_archive" on the custom post type tribe_events


    I suggest you to use WordPress SEO with an efficient breadcrumb tool !

    I’m also interested in the way for the name of the category to take place in the breadcrumb
    http://saintpierre.delareunion.net/agenda/categorie/concerts
    “Concerts” should be near ‘Agenda >’

    #15867
    Ken
    Participant

    Hi again. I found that wp_title("",true); will remove the separator and is displaying the text for single day just as I would like it. However the same code for the category list renders as “Upcoming Events My Category”. Is there a way to remove the text “Upcoming Events” and just list the category? Also still wondering about the ‘single event’.

    @julien – thanks for the plug-in tip. I might check it out later. Basically are you telling me to register the post type that it has a archive page?

    #15870
    Ken
    Participant

    I have found a way to show the category title only on the upcoming events list:
    echo single_cat_title();

    #15955
    Ken
    Participant

    I’m getting closer 🙂

    Is there a way to check whether I am viewing the entire upcoming event list or a specific category upcoming event list?

    I tried adding tribe_is_upcoming() but did not succeed.


    if(tribe_is_month()) {
    echo 'Calendar Grid';
    } else if(!tribe_is_upcoming('category1')||!tribe_is_upcoming('category2')) {
    echo 'All upcoming Event List';
    } else if(tribe_is_event() && !tribe_is_day() && !is_single()) {
    echo 'Event List';
    } else if(tribe_is_event() && !tribe_is_day() && !is_single()) {
    echo 'Event List';
    } else if(tribe_is_event() && !tribe_is_day() && is_single()) {
    echo 'Single Event';
    } else if(tribe_is_day()) {
    echo 'Single Day';
    } else {
    the_title();
    }

    #15987
    Rob
    Member

    Hey Ken. Let me get Jonah to take another look here…stay tuned.

Viewing 15 posts - 1 through 15 (of 24 total)
  • The topic ‘Editing "Calendar of Events" and breadcrumbs help’ is closed to new replies.