-
Posts
2,765 -
Joined
-
Last visited
-
Days Won
40
Everything posted by Macrura
-
i'm just doing this, basically a callback to isotope's layoutComplete: $grid.isotope('on', 'layoutComplete', function() { $('.unveil img').trigger('unveil'); });
-
Trying to get a module's InputfieldSelectMultiple options
Macrura replied to Jo J's topic in API & Templates
sorry meant module config data be sure to look at the api docs also make sure to have tracy debygger installed -
Trying to get a module's InputfieldSelectMultiple options
Macrura replied to Jo J's topic in API & Templates
If you are creating an input within a module, then you add the options via the API. You get the data that is stored by the module using the getModuleInfo() method and then you would see what the module's settings are. If you look at the Settings Factory module, you'll see how you can use many different inputfields, and how the module provides the stored data back as an array or object. -
you could use like mini bb edit tags, e.g. [span] and [/span] so they don't get escaped; then you can replace those on output..
-
i have at least 1 site using jquery unveil.js in combo with isotope and works perfectly
-
If i were faced with your issue, i would change the structure of the pages and all of that, it doesn't make sense to me; i guess it must make complete sense to someone else, whoever set it up that way, but obviously the module author(s) never accounted for this sort of setup; You can also just roll your own RSS feed, then you don't need to be straddled with module interactions; it's not that hard to just make your own RSS class that takes into account any arbitrary structure and outputs it how you want; you could also just extend the module itself and modify the Module Class to a new one, and work from there until it works...
-
Howto change Textarea field to CKeditor field and keep formatting
Macrura replied to lpa's topic in General Support
if you don't want to add the textformatter to the field, you can also do something like this.. $markdown = $this->wire('modules')->get("TextformatterMarkdownExtra"); $htmlVersion = $markdown->markdown($page->textarea_field,2); -
yeah i also want to thank @flydev for the awesome work on this, massively appreciated!
-
it looks like a typical recursion error – it is possible something was wrong with that version, or a module incompatibility. Did you try upgrading to the latest dev? If not, do you have TracyDebugger installed and Debug mode on? You might need to try disabling some modules one by one to see if you can narrow it down..
-
no, it shouldn't be that way, because item will always return true if the country has states. you are even echoing an opening parenthesis before checking to see what if anything is selected on the page itself. the logic needs to be to check both if the country has states AND if there are states selected on the page; you don't even need to use has_parent, because if you are using dependent selects that has already taken care of filtering the selectable options by the country select field.
-
well, it's not an error, it is a warning. You could ignore it (?) Alternately - did you already enable DEBUG mode, install TracyDebugger? that warning may be coming from this file: wire/modules/Process/ProcessField/ProcessField.module but i don't know why that file would be in play upon login, unless you have a module or some hook somewhere doing something.
-
$item is the page object for the country, so will return true on your if statement, even if no states are selected.
-
Selector Fieldtype uses template id rather than name
Macrura replied to FlorianA's topic in API & Templates
what is your code? -
you can do like this: $pageArray = $this->wire('pages')->getById($_ids); $pdf->markupMain = ''; foreach($pageArray as $item) { $pdf->markupMain .= wireRenderFile($this->config->paths->templates . '/book2pdf/default.php', ["page" => $item]); }
-
it also depends on the budget of the project; for clients without a line item for frontend design, us developers have no choice but to use an HTML theme... and why deny some clients without large budgets the benefits of having a PW site... Sometimes these Themeforest and Wrapbootstrap themes are good, and have good integrations with plugins like tabs, slideshows, masonry etc. Having said that, i do find that i have to fix a lot of problems with these templates, remove as much CSS code as i can that i'm not using, and also write a lot of my own custom stuff on top of them; here is a site using Canvas: http://louiskarchin.com (recently relaunched/upgraded)..
- 23 replies
-
- 4
-
- template
- website template
-
(and 2 more)
Tagged with:
-
Most themes come in the plain HTML version, so not much use these days to convert a WP theme.. But, if you absolutely must use a wordpress theme, the easiest way is to copy the HTML that WP outputs and analyze/use that; looking at the source WP theme code is typically close to useless;
-
Thanks for this - this has solved the issue with FieldDescriptionsExtended that i posted about...
-
Possible to layout pages this way? (Page Tree Q)
Macrura replied to joer80's topic in General Support
@Robin S - sure, here is some info on how i use page flags (sorry if this is off-topic and/or verbose!) 1) i setup a (page reference) field to hold flags for any page (usually I use chosen select, but ASM select is also good for this); Users have to be able to add flags. 2) I start traversing through a type of content, (in this case the musical works of a pretty famous composer), and find problems; for this project the works were imported from another system, and now need to be cleaned up; the flags helps us to track, group, filter the works that have certain issues, or maybe need attention from some specialized member of the team; I have also setup a certain amount of auto-flagging, just by checking the fields on save and adding the flag if problems are found – for example (on a different site) the admins want to add a subscription form strategically inside the body content of their blog posts; there was no easy way to do that except by manually adding the hanna code to the body copy where they want it; But they have several hundred blog posts and don't know which ones they missed; so i have the system scan the body field for the hanna code and if not there, add the 'missing subscribe form' flag to those posts. -
Possible to layout pages this way? (Page Tree Q)
Macrura replied to joer80's topic in General Support
here is a screenshot of a dashboard, i'm using a simple grid framework + a free admin theme (AdminLTE 2) + masonry for the 'widgets'; i use 3-4 types of widgets, one is a set of shortcuts which is configurable to show on different users, or access levels; this allows individual users to have their own custom set of shortcuts if needed. The other types of widgets are a mini lister, and a formbuilder list; The formbuilder list can display recent submissions to various forms, and is helpful for admins who want to see a quick overview of recent submissions. -
Possible to layout pages this way? (Page Tree Q)
Macrura replied to joer80's topic in General Support
I use a dashboard for most big sites, and shortcuts on there to all of the major interactions; i have clients who interact with their content only through the dashboard and lister pro listers, and some settings pages that have shortcuts to edit on the dash... -
@Zeka, many thanks - will accept PR and test asap...
-
I'm not experienced with the multilanguage stuff; I'd have to research to see if there is a way to support it...
-
Do you have Tracy Debugger installed? That might provide some additional info; Usually when I'm doing a V2 -> V3 upgrade, i follow this procedure: 1) If I don't have the site already cloned locally, make a duplicate site on local machine to test the upgrade - make sure you have TracyDebugger installed, force development mode - put site into debug = true 2) check/repair permissions on files, and also check the chmod settings inside config.php (I've had upgrades seem to fail because of bad permissions).. 3) remove all modules that are known to not work on V3, for example legacy CropImage; - also remove all modules that are not necessary for the site to run - check which ones are in the modules folder, but are not installed and remove those. 4) Run the upgrades on the local version, and find issues, repair...; - view logs if you get errors - repair permissions if you get server errors but nothing in logs - Update .htaccess, add any mods that were made to the 2x version into the 3x version (such as www/non-www, force https, custom redirects, gzip etc). So far even on a really complex site, i've maybe found 4-5 things that needed to be fixed, and then i went to the live site, fixed those things before the upgrade, then ran the upgrade on live and it worked fine. Make a complete backup of the live site, as well as the database, using the database backup module, prior to running the upgrade Troubleshooting: - If you run into modules that seem to be broken, you sometimes have to trick the filecompiler to recompile the module, you can open the module file, create a new line somewhere, save, undo, save... (this happened on a few sites) - refresh the modules - sometimes you have to refresh modules several times to clear out errors
-
@Zeka - as far as i know this module shouldn't prevent you from using languages, since you create the inputfields, and the module does not limit what you put in the config settings for any/each inputfield. Did you test it already and find it not working (?), if so i can look and see if the issue is with the module, otherwise it should work the same as if you were creating module config settings..