Modules Anywhere

Correct name to use for parameter replacement

1 year 1 month ago #73863

Rod Wagoner's Avatar Rod Wagoner

Peter,
On replacing module parameters. I've found the paramater that I want to replace but am confused as to which name to use. Here is the code snippet:

<input type="text" name="jform[params][starttxt]" id="jform_params_starttxt" value="Let's Get Started!" size="70" aria-invalid="false">

I want to change the value. do I use {module 245 starttxt="new text"} or {module 245 jform_params_starttxt="new text"} ? Neither one seems to work and I wasn't sure how to refer to [params][starttxt].

Kind regards,
Rod

1 year 1 month ago #73868

Peter van Westen's Avatar Peter van Westen Admin

starttxt="new text" should work.
Can you give me (super) admin and (s)ftp access so I can take a look?
And tell me on what url I can see/reproduce the issue.
You can use the 'Hidden text' button in the forum editor to hide the confidential information.

1 year 1 month ago #74013

Rod Wagoner's Avatar Rod Wagoner

Hi Peter,

OK, the url is dev.azyr.org

Confidential information:
(hidden)


There is an article, ID # 72 - "Quiz_Stats_Test" It contains 1 line, "{module 245 starttxt="go"}". The module has a user-defined position. When i take out the starttxt="go", the module shows fine. When I try to override the parameter, I get the following error in the HTML
<!-- START: Modules Anywhere --><!-- Modules Anywhere Message: The module cannot be placed because it is not published or assigned to this page. --><!-- END: Modules Anywhere -->

I do have the override parameters setting turned on in the Plugins.

The module is published and assigned to the menu item that throws this page. I even tried assigning it to the article with Advanced Module Manager.

Hopefully, I'm just doing something stupid.

Kind regards,
Rod

1 year 1 month ago #74014

Rod Wagoner's Avatar Rod Wagoner

Peter, make that module 264.

1 year 1 month ago #74015

Rod Wagoner's Avatar Rod Wagoner

Peter,

Never mind. I was looking through the forum and found an entry where you said that when you use parameters, you have to use id= in the module string. I wasn't . I did that and it works now.

Kind regards,

Rod

1 year 1 month ago #74016

Rod Wagoner's Avatar Rod Wagoner

But it did raise a couple of other questions. There are a couple of parameters that don't want to change. Two examples are jform[params][startimg] - which is an input type text but has a select button around it ... it puts an image in place and another is advancedparams[pre_html], which I believe is one from Advanced Module Manager.

1 year 1 month ago #74017

Peter van Westen's Avatar Peter van Westen Admin

Correct. For others reading this: here is the documentation on syntax when adding extra parameters/attributes:
www.regularlabs.com/extensions/modulesanywhere#extra-parameters

To override a parameter like jform[params][startimg] you would need to use: startimg="...."
To override a parameter like advancedparams[pre_html] you would need to use: pre_html="...."

1 year 1 month ago #74018

Peter van Westen's Avatar Peter van Westen Admin

Regarding the advancedparams, it seems this does not work yet in the current version of Articles Anywhere.
But I fixed this in the latest development version:
www.regularlabs.com/development-releases

1 year 1 month ago #74029

Rod Wagoner's Avatar Rod Wagoner

Hi Peter,

Thanks for your reply, especially during holiday.

Neither the startimg=" " nor the pre_html=" " seem be working. I did download the latest development versions of Advanced Module Manager and Modules Anywhere.

On the pre_html, I noticed that it doesn't have an explicit value=" " in the source view. Would that have something to do with it?

Kind regards,

Rod

1 year 1 month ago #74030

Rod Wagoner's Avatar Rod Wagoner

Peter,

1 step closer. for the startimg=" ", the input was part of a path to the image. I was using "images/quiz_logs/PM.png" as the value. I needed to escape the forward slashes |/ and then the image changes.

I'm still stuck on the pre_html, though.

Kind regards,

Rod

1 year 1 month ago #74031

Peter van Westen's Avatar Peter van Westen Admin

Please also try installing the latest dev version of Advanced Module Manager.

If it still doesn't work, can you give me (super) admin and (s)ftp access so I can take a look?
And tell me on what url I can see/reproduce the issue.
You can use the 'Hidden text' button in the forum editor to hide the confidential information.

1 year 1 month ago #74032

Rod Wagoner's Avatar Rod Wagoner

Hi Peter,

Yes, I already installed latest of Advanced Module Manager.

Confidential information:
(hidden)


Module id is 264, "Chapter_Quiz_Copy_2"
Article calling module is 72, "Quiz_Stats_Test"

Thank you.

Kind regards,
Rod

1 year 1 month ago #74034

Peter van Westen's Avatar Peter van Westen Admin

If you look in the html view of where you have the {module} tag, you will see:

... startimg="images\/quiz_logos\/PM.png" &nbsp;pre_html="Hello Joe" }
Try removing the &nbsp;

1 year 1 month ago #74035

Rod Wagoner's Avatar Rod Wagoner

Hi Peter,

Sorry, that didn't help.

Kind regards,
Rod

1 year 1 month ago #74036

Peter van Westen's Avatar Peter van Westen Admin

What is the administrator url?

1 year 1 month ago #74037

Peter van Westen's Avatar Peter van Westen Admin

PS: When using Sourcerer: the ending tag is: {/source} ;)

1 year 1 month ago #74038

Rod Wagoner's Avatar Rod Wagoner

Ah, sorry ... your right.

Confidential information:
(hidden)

1 year 1 month ago #74039

Peter van Westen's Avatar Peter van Westen Admin

Sorry, seems I didn't push the latest changes to the dev version yet.
Please download the new dev version of Modules Anywhere from:
www.regularlabs.com/development-releases

1 year 1 month ago #74040

Rod Wagoner's Avatar Rod Wagoner

OK, I've just installed it.

1 year 1 month ago #74041

Rod Wagoner's Avatar Rod Wagoner

And Bob's your uncle.

Thanks very much, Peter!

Kind regards,

Rod