The plugin output doesn’t look very cute after install. It is necessary to adopt it to your needs. Nevertheless it shouldn’t be too hard.
Have a look at the comments in the example template.
Make it work¶
Here are the needed steps described to make the plugin work.
Additional work might be needed to adapt is to your needs. Usually this is limited to template work.
1. Include TypoScript¶
Include the TypoScript in your template record or your site package.
2. Include Plugin¶
Bookmark Pages plugin as content element. This is just for testing and not usually what you want.
Login and you should see some output. On the introduction package it looks like this:
The plugin might be inserted more than once on a page. In that case mark
Is complementary under
for all plugins except the first one.
1. TypoScript and Templates¶
You may just copy the needed parts to your site package.
The fluid template paths can be configured as usual using TypoScript. Have a look into the TypoScript template (look for plugin.tx_bookmarkpages.view)
The bookmarks might be stored in the browsers local storage allowing users to bookmark pages without being registered on the site. Storing the bookmarks locally as well safes unnecessary server requests. The feature can be enabled through the constants editor.
The provided example uses JQuery for ajax requests. JQuery is included by TypoScript. You might want to remove that with:
3. Include in your page template¶
The rendering of the bookmarks list might be something you want to include into your page template. This could be done in a fluid template like this:
Of course you want a bookmark button on every page. This can be done in fluid like this:
You can place the snippet in any template not just the plugin templates.