CRM-14542 When on a Civi page, civi info in widget doesn't show

    Details

    • Documentation Required?:
      None

      Description

      When on a Civi page in WordPress, donate, membership, events, etc. Any Civi information that may be placed in a widget on the sidebar does not also load. It seems to be trying to bootstrap twice.

      I believe Andrew has a work around in this extension: https://civicrm.org/extensions/civievent-widget however we should find a way to apply to core.

        Attachments

          Issue Links

            Activity

            [CRM-14542] When on a Civi page, civi info in widget doesn't show
            Coleman Watts added a comment -

            This is basically the same issue as CRM-13634

            Christian Wach added a comment -

            This issue is partially resolved in https://issues.civicrm.org/jira/browse/CRM-12616?devStatusDetailDialog=repository

            The latest commits will only pick up the fact that there are shortcodes in the content of the current loop query and will not detect that there may be shortcodes in widgets as well. Since multiple instances of functional Civi content cannot co-exist on a single view – whether on a post/page, an archive or as the result of content + widget(s) or multiple widgets – there needs to be some kind of fallback for widgets alongside the fallback that I have provided for shortcodes.

            Coleman Watts added a comment -

            Want to take a stab at this Christian?

            Christian Wach added a comment -

            I think the civicrm-wordpress plugin should provide a set of widgets instead of allowing shortcodes to be pasted into them. This would avoid the issue, but is far from a small project. I'll contribute, but a list of desired and desirable widgets would be helpful in the first instance.

            Kevin Cristiano added a comment -

            This original problem was related to a widget from a WordPress plugin not showing correctly on pages that CiviCRM content was already on the page.

            This turned out to be a bug in that plugin, not in CiviCRM.

            However, I agree with Christian that it would be great if we included widgets with CiviCRM. I think we should create a new issue to get a list going of what would be needed/wanted.

            Coleman Watts added a comment -

            Sounds good. A nice starting place might be to look at the possibility of auto-generating widgets from all content which is currently exposed as a shortcode (so there would be a 1-1 relationship btw widgets and shortcodes exposed by the core plugin).

            Christian Wach added a comment -

            Coleman - I'm not sure the shortcodes are necessarily the best place to start. Nobody would need the dashboard in a widget, for example. I'd be more inclined to suggest things like "Upcoming Events" and so forth. Happy to defer to others opinions, however.

            Coleman Watts added a comment -

            Fair enough.
            Although for events there's already this: https://civicrm.org/extensions/civievent-widget

              People

              • Assignee:
                Christian Wach
                Reporter:
                Tadpole Collective

                Dates

                • Created:
                  Updated:
                  Resolved: