Jump to content

Multiple widget instances of Guest sign up promt


Recommended Posts

Posted

I am not sure if this is an issue with the theme that i am using of if the case is the same with the standard theme.
When i edit a page, i have the drawer to the left, that i can drag and drop widgets onto the page. One of them is a Guest sign up promt.
 

This widget has some text that i can edit, but i want to specify this text depending on what page it is set to. So if i use it on the front page, it should have one text. But if i use it on a blog, it should have an other text. If i use it on calendar, it should have a whole different text.

At the moment, if i edit the text, it will change across all pages that this widges is being used. Is there a way to change this text depending on what page it is on?

Posted
1 minute ago, opentype said:

No. It’s meant to be like this.  

Ok. What i am trying to do, is on a blog post, i want to use a guest promt, saying: If you want to create your own blog, sign up here
On a calendar event, i want to use a promt that says "Sign up here, if you want to add your own events"

The reason i want the promt, is so that the user can get back to that page, once they sign up.

Posted

@opentype thanks!

I am propably just a  rookie at this, but i did create 3 new blocks based on the guest sign up promt. But they are all linked still. They have their own name and Template Key but when i edit one of them they all get updated with the same text

 
Posted

The guest widget uses a language string so the same translation is used in each of your “copies”

 

You could just create a new WYSIWYG widget or create a custom language string for each block.

Posted

Or while editing the custom block, go to the last tab (“content”) and choose “use as a base for a custom template” and add your text there instead of {$title} and  {$text|raw}. Not an elegant solution, but it would work. 

Posted

Thanks both of you!

I went with @opentype suggestion mostly because i have no idea how to make a custom language string.
Still, when i edit the htmlin the content area of each widget, all instances update across the site. So i am guessing that i have made a mistake when creating the custom blocks.

Pages - Blocks - Create new block
Select Plugin + Guest sign up widget
Then fill in the fields with the appropriate information.

Can you spot where i made a mistake?
If i remeat this 3 times, my guess is that i should have 3 instances of this block, that can have different content/text. But they don't. They all update across the site when i change the text

Posted

So what is wrong is this doesn't happen?
When i change the text of one (even in the content tab) it updates the text on the other blocks too.
I have made sure to use three different instances of the blocks or different areas, called guest_blog, guest_calendar and guest_club
But when i change the text on one of them, it changes across all of them

Posted

You probably made a mistake while editing the template. Make sure to replace all instances of the variables. They appear twice – once for horizontal, once for vertical blocks (sidebar). 

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...