Main Board > Webster Plus

short code [list]

(1/1)

Jon Toomsen:
Starting to test shortcode syntax - This does not work.
is there a declare I must use.


[list Cars$][data rowsep=/]Ford/Gm/Audi/Volvo[/data][/list]

Mike King:
I haven't checked but it looks like you are missing the trailing separator.
I think it should be:

[list Cars$][data rowsep=/]Ford/Gm/Audi/Volvo/[/data][/list]

Mike King:
I just did a test and the trailing slash is not required (although it probably should be there).

Using PxPlus 2023 the following web page worked for me with or without the trailing separator.


--- Code: ---<!DOCTYPE html>
<html>
<head>
<meta name="author" content="Mike King" />
</head>
<body>
[ttl]Cars[/ttl]<br>
<p>[form program=myprog]</p>
[list Cars$][data rowsep=/]Ford/Gm/Audi/Volvo/[/data][/list]
<br />
[list Cars2$][data rowsep=/]Ford/Gm/Audi/Volvo[/data][/list]
[/form]
</body>
</html>

--- End code ---

Jon Toomsen:
Yes it all works - getting used to html again.
Thanks

Mike King:
There are a number of ways to create HTML using PxPlus that don't require much knowledge of HTML itself.

I personally use the PxPlus HTML editor (*htmledit) if I want to design the screen myself.  It has menu options to insert Webster short odes.  Basically just start the editor and enter the short codes. No HTML coding required.

You can also use the file maintenance generator to create forms based on file definitions.  It can make general maintenance screens which you can customize or inquiry screens which provide basic layouts that you then add events to. 

Using the section and row short codes allows you to create responsive screens without much work.

Navigation

[0] Message Index

Go to full version