PDA

View Full Version : Formatting module/widget names


Replicant
05-04-2015, 10:55 PM
I just finished creating a custom widget. It shows up in SiteBuilder with the correct icon, but VB seems to want to name it kind of odd.

~~widget_polls_widgettitle~~

The template name is widget_polls. I was wondering if anyone knows which item in the XML file names the widget. Currently, I have "title" in the <name> tag in the XML file and that got me nowhere. Here is the definition block from the XML file.

<definition>
<field>Text</field>
<name>title</name>
<defaultvalue>Current Polls</defaultvalue>
<isusereditable>1</isusereditable>
<isrequired>0</isrequired>
<displayorder>1</displayorder>
<validationtype>force_datatype</validationtype>
</definition>

Dead Eddie
05-05-2015, 12:05 AM
Are you looking for the human readable form of widget_polls_widgettitle? If so, it's a phrase.

Replicant
05-05-2015, 12:51 AM
That makes sense. Now to find where to link the phrase to the widget. Thanks Eddie.

delicjous
05-07-2015, 02:58 AM
<phrase name="YOUR_WIDGET_NAME_widgettitle" date="" username="" version="1.0"><![CDATA[YOUR_WIDGET_NAME]]></phrase>

Hope it helped :)

Replicant
05-07-2015, 05:55 PM
<phrase name="YOUR_WIDGET_NAME_widgettitle" date="" username="" version="1.0"><![CDATA[YOUR_WIDGET_NAME]]></phrase>

Hope it helped :)

Very much. Thanks.