I would like to make button submit to direct to new page, but don't know how to do this. Does it have to be javascript function embedded in HTML ?
Thanks
I would like to make button submit to direct to new page, but don't know how to do this. Does it have to be javascript function embedded in HTML ?
Thanks
You can have a button to open a newpage using the NewPage Button. For this to work best you need to make sure you use categories for your pages and you can then have a button to create new pages in each category. An example of the syntax you can use is as follows:
[[include :snippets:newpage-button
|size=215px
|category=countries
|name=newcountry
|parent=countries:main
|button=Add a new Country page
]]
If you don't use categories then you would just leave out the category= line.
I use this a great deal on my sites and it works very well.
Rob Elliott - Strathpeffer, Scotland - Wikidot first line support & community admin team.
Thanks, Bob. You're really helpful.
I am sorry that in last thread I didn't post clearly. What I wanted to say was to direct the current page to another existing page, but I described to the term "new page". Your method works great.
Can you also tell me how to direct to another existing page?
Thanks again!
Have a nice holiday!
Yes you can do this with the following recipe which you can adjust to taste:
[[div style="-moz-border-radius:5px; -webkit-border-radius: 5px; background-image: url(http://themes.wikidot.com/local--files/rainbow-base/button_2.png); background-repeat: repeat-x; background-color:#F4F4F4; border: 1px solid #dddddd; height: 35px; text-align:center; width:100px;"]]
[[[start| Home]]]
[[/div]]
Which will give the following result:
Rob Elliott - Strathpeffer, Scotland - Wikidot first line support & community admin team.
Of course, if you don't need the background image then just do a normal link: [[[start | Home]]]
Rob Elliott - Strathpeffer, Scotland - Wikidot first line support & community admin team.
Thansk Rob!
I copied all this to a howto http://community.wikidot.com/howto:button-links
I could not find any related howto (box?)…
Service is my success. My webtips:www.blender.org (Open source), Wikidot-Handbook.
Sie können fragen und mitwirken in der deutschsprachigen » User-Gemeinschaft für WikidotNutzer oder
im deutschen » Wikidot Handbuch ?