Forums / Cotonti / Extensions / Support / Pagegroup

Unable to install

musashi9
#1 2013-10-16 01:31

I am unable to load the extensiosn page (to install) once I have uploaded Pagegroup

I just get a white blank page.

I only get my normal page back when I delete pagegroup folder from my plugin dir

Dayver
#2 2013-10-16 02:27

Folder name should be pagegroup иге I do not understand why you get a blank page because of that (in file datas/config.php please сheck the $cfg['display_errors'] = TRUE; for error detection)

Pavlo Tkachenko aka Dayver
musashi9
#3 2013-10-16 07:01

Parse error: syntax error, unexpected ';', expecting ')' in /home/mysite/public_html/plugins/pagegroup/lang/pagegroup.en.lang.php on line 14

Twiebie
#4 2013-10-16 10:22

The arrays on line 14, 15 and 17 are not closed. Try replacing that block with this one:

$L['cfg_category'] = array('Category codes', 'Comma separated, where need collect page in group. If empty then for all');
$L['cfg_extrfldnamegroup'] = array('Name of extra field', 'Page extra field for a page id and group specification for grouped<div id="addextrfd">
<button type="button">Create the specified extra field</button> If there is an extra field that will fill his the service information. That is, it is recommended to click this button in any case</div>');
$L['cfg_extrfldnamesforgroup'] = array('Extra fields names', 'Page extra fields names, comma separated, for a collect pages in group by his value');
musashi9
#5 2013-10-16 12:49

That worked thanks

Dayver
#6 2013-10-16 13:12

Sorry, did not test with English only translated from Russian and unfortunately made a mistake. Thank Twiebie

Pavlo Tkachenko aka Dayver
musashi9
#7 2013-10-16 13:47

How do I use this plugin?

Dayver
#8 2013-10-16 14:11

The plugin allows to group pages into groups of a certain field . For example, if you have an Internet shop site that sells handkerchiefs in the category of " Silk scarves " is except shawls with various patterns and even a polka dot scarves 5 differences between them only in the color of peas that using this plugin you can combine pages headscarves in peas in the same group . Then in the category will be displayed only one polka dot scarf , but next to it will be " pereklyuchator " by the color of peas . Switching within the group is fast and easy with the help of AJAX. For the functional store that gives everyone the opportunity to have a product ( even with minor differences ) a separate page. Since then the use of plug-in versatile he can be , not only for online shopping, but also other kinds of sites.

Pavlo Tkachenko aka Dayver
musashi9
#9 2013-10-17 01:28

How do I set it up? I am a noob :D

Extra Fields ?

 

Dayver
#10 2013-10-17 02:27

After instal in admin panel go to config page of plugin and fill all config field then press button "Create the specified extra field" then press button for save config.

Edit the templates theme of your site:

  • In page.add.tpl  and  page.edit.tpl paste the appropriate tags specified in the configuration of the plug-extrafield.
  • In page.list.tpl insert tag {LIST_ROW_PAGE_GROUP_ROTATOR}. It is also available {LIST_ROW_PAGE_IN_GROUP_COUNT} tag that displays the number of pages grouped , with which you can make the condition display "switcher" only pages that are in the group. It will look something like this : <!- IF {LIST_ROW_PAGE_IN_GROUP_COUNT} > 1 -> {LIST_ROW_PAGE_GROUP_ROTATOR} <!- ENDIF ->. As well , it is necessary for the correct switch pages in the group to wrap the contents of the container LIST_ROW section showing the pattern id id = "paggrp {LIST_ROW_ID}. So section should look like this : <!- BEGIN: LIST_ROW -> <div id="paggrp {LIST_ROW_ID}"> ... </ div> <!- END: LIST_ROW ->
  • If necessary, make changes to the template "switcher" by editing pagegroup.listrow.rotator.tpl

Sorry for my english (using Google Translate) 

Pavlo Tkachenko aka Dayver