Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
Steph Jensen Posted May 7, 2018 Posted May 7, 2018 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?
Steph Jensen Posted May 7, 2018 Author Posted May 7, 2018 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.
opentype Posted May 7, 2018 Posted May 7, 2018 Sure. The Pages app allows to take the regular widgets and create custom widgets from them with custom settings and permissions.
Steph Jensen Posted May 7, 2018 Author Posted May 7, 2018 Awesome @opentype! Do you have a link that desribes how i can do this? I've had a very very short look at the pages section in AC but did not stumble upon it
opentype Posted May 7, 2018 Posted May 7, 2018 Just go to the block section and create a new block. Guest signup widget will be an option as block type.
Steph Jensen Posted May 9, 2018 Author Posted May 9, 2018 @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
Daniel F Posted May 9, 2018 Posted May 9, 2018 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.
opentype Posted May 9, 2018 Posted May 9, 2018 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.
Steph Jensen Posted May 10, 2018 Author Posted May 10, 2018 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
opentype Posted May 10, 2018 Posted May 10, 2018 If you change the template three times, you will have three independent blocks with three different texts.
Steph Jensen Posted May 10, 2018 Author Posted May 10, 2018 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
opentype Posted May 10, 2018 Posted May 10, 2018 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).
Recommended Posts
Archived
This topic is now archived and is closed to further replies.