First create a shop.htm, based on the contents of master.htm but modified to your needs.
i.e. replace
with some nice addons you would like in that template. FTP that file to /themes/YOURTHEME/templates/modules/
The following step is just to tell Xanthia a new template is uploaded. So, go to Xanthia admin, edit your theme theme, and click the templates tab. Click "New module template", and use "shop.htm" as a title. Copy the contents of your file into that textarea and click "Submit". (since you should configure Xanthia to not use templates in the
DB, but use them from the filesystem, this step is only to not have you delete and add your theme again to show the uploaded file)
Then, go to the "Content Wrappers" tab and click "[ Add new wrapper ]". Define a custom 'name' for it (choose it as you like). Then, next to "New master for module", you select your shop-module. The "Label" field will be filled in automatically for you. Leave the rest unbothered and click Commit.
Finally, at the bottom of the wrapper list, you see your newly created wrapper. Click "Configure" at the right of it and select your shop.htm template (which you uploaded and added through the Xanthia template admin interface. Then, activate the wrapper by clicking "Activate".
The module template should now work.
Presumably this new zone is some sort of "block position tag" like $rightblocks, so where do I code up what blocks are included in that zone?
I've had a play in the Xanthia admin pages, but that just does my head in. No doubt PN.8 will make it all very easy and obvious and well documented somewhere.
This is something else: block positions allow you to add more positions than the standard left, center and right, and has nothing to to with specific module templates.
In your shop.htm, you could choose to replace
with for example
. This way, you don't have to manually add all your contents to shop.htm, but let the system define them for you.
For this to work, follow the procedure above, but afterwards, add more wrappers: not one for the shop module, but one for each BLOCK you wish to use (the label will read the block title without spaces).
After that, you go to the "Block position tags" tab and add add the tag described above to the "Tag to use in theme" field.
After that, go to the "Block control" tab. Next to "Module", choose your shop module. Select all the blocks (using CTRL to select multiple items) you wish to use in that template, INCLUDING the top "--Block Control" entry in that list, and click "Update".
When done, Find your module in that list below and make sure that all your block have the right zone: SHOPBLOCKS
I guess you have to play around with the system a bit, this is all I can add for now. Or wait for .8 to come out. Indeed, this is much, much, much easier there, and maybe worth to wait for.
--
-- Teb
-- Dutch Zikula CommunitySupport questions in a Personal Message will be ignored. Use the forums at all times!