• Resolved atooley

    (@atooley)


    I have been looking for a way to duplicate text widgets to be used in multiple sidebars (with the plugin Custom Sidebars).

    I was just wondering, when you create an alias, it allows you to select from all the previous widgets, including other alias widgets.

    Example:

    Text-3 – original widget
    widget-alias-3 – alias of text-3

    I want to use text-3 again, obviously, I just make the new widget an alias of text-3, but what happens if you select widget-alias-3?

    Should you even be able to select widget-alias’s in the option?

    Is there a reason to alias an alias?

    Just wondering if this would make the drop-down less cluttered? I can imagine when you have 200 widgets, it could get messy

    Thanks!

    https://www.ads-software.com/plugins/widget-alias/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Mickey Kay

    (@mcguive7)

    Hi there,

    Thanks so much for your questions and feedback. Initially, the plugin omitted widget-alias widgets from the drop-down select, for the very reasons you mentioned. In a later version I added them back in, primarily because I couldn’t see a reason why not to. Yes, it does add a bit more clutter. That’s the main downside. One upside I can think of is that if you’re using Widget Alias’ ability to override a widget title – then it might make sense to duplicate a WA widget, instead of the original (and have to rewrite the title again).

    I am open to both options though. Do you feel strongly one way or another moving forward? I would love more input on optimizing this plugin (and all of our plugins).

    Thanks!

    Thread Starter atooley

    (@atooley)

    Interesting.

    So is this how it works, just so I am clear.

    text-widget-1 with title A
    alias-widget-1 (alias of text-widget-1) with title A (I just leave title blank)

    Then whenever text-widget-1 is updated, so will alias-widget-1 (content and title)

    —-

    Then if I want to use a different title, but same content

    text-widget-1 with title A
    alias-widget-1 (alias of text-widget-1) with title B

    Then whenever text-widget-1 is updated, the content but not title in alias-widget-1 will be updated.

    —-

    Now let’s say I plan on using the same content with two different widget titles across the site on several pages for each.

    text-widget-1 with title A
    alias-widget-1 (alias of text-widget-1) with title B

    For title A, I would just make an alias of text-widget-1
    For title B, I would just make an alias of alias-widget-1

    If I update the content in text-widget-1, it will get updated for all widgets that are aliases and aliases of aliases

    If I update title A – it will get updated for aliases of the original text-widget-1

    If I updated title B – it will get updated for aliases of the alias-widget-1 (with is an alias of the original text-widget-1)

    Is all of that correct?

    So being able to make an alias of an alias saves time if you ever plan on using the same widget across many sidebars and want to update or change the title across several pages.

    —-

    This seems like a really strange scenario. I think it would almost be more clear to just create two separate original text widgets with different titles (same content). So you would have to update the text in two places instead of one, which is not that bad. It gets bad when you have to do it 20 times…

    Does the ability to create aliases of aliases slow down the backend? This seems like it would since there is another association.

    Is it possible to add a control page or a selector somewhere that gives you the option to make aliases of aliases? If not selected, they are not available in the drop-down? This might be the best of both worlds in terms of UI and functionality.

    Thanks for the quick response.

    Plugin Author Mickey Kay

    (@mcguive7)

    Point taken, I think I will remove the aliased widgets from the drop-down list in the next version. Thanks for the extensive feedback!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Question about Plugin’ is closed to new replies.