-
Posts
2,765 -
Joined
-
Last visited
-
Days Won
40
Everything posted by Macrura
-
update, so here's a super simple module that is doing this now and seems to be working... (where session_table is the PageTable) (moved revamped code to github..see next post)
-
yeah, i always need to nag the clients during development to keep their page names consistent with the titles.. maybe a module where you could enable a "development mode" which would prompt the user when changing title if they also want to rename (update slug)... some might even want to leave it on and then rely on the page path history to redirect..
-
@Christophe, i'm not clear on what problem you are having... but there were some errors in your code <div class="gallery"> <?php foreach($page->children('include=hidden') as $child) { // $thumb = $child->images->size(320); // your $thumb var is an array... changing it below so it works $thumb = $child->images->first()->size(320); echo "<a href='$child->external_url' width='320' height='200' target='_blank' rel='nofollow'><img src='$thumb->url' /></a>"; } ?>
-
I'm a little confused about the admin theme here in 2.4+; I see that the system still pulls fontawesome from the wire/templates-admin directory; i tried to upgrade fontawesome in my site/templates-admin, and uninstall the admin default theme, but it still pulled the font from the wire/templates-admin; so for now i have upgraded FA within wire (and this works, giving access to all the new icons), but i guess it would be better if we could somehow upgrade our version of FA without hacking the core; i'm using a modded fontawesome page label now on every site, but i don't want to load FA 2x, and i need the new icons..
-
@ozwim - not sure if you already know about this, but i follow Soma's suggestion and have a folder called 'hannas' and then keep all the hanna codes there; and then using this in the hanna code itself: include($config->paths->templates . "hannas/some-hanna-code.php"); @mr-fan - that's great - we should try and setup a place to share hanna codes... maybe github? I have a lot of examples also
-
thanks adrian, cool, i haven't poked around in the database yet.. i think i would need the ability for users to be able to add those PageTable entries from either the 'class' page, or from the page tree; so i think i'll need to write a module that adds the appropriate 'session' pages to the 'class' when a new session is added not from the place where the page table is... and i'll probably need to run some api code to add all of the sessions to those class pages...
-
thanks @kongondo...fixed in post
-
regarding PageTable, is it possible to retroactively use pages that already exist in a PageTable, and if so how would you 'manually' associate them with the page they need to display on; to clarify i have a template called "class" which is an art class; then i have another template called 'session' which is an actual instance of that class (with dates, time, instructor etc); It would be cool if i could show the class instances (sessions) on the Class page editor, using the PageTable; i have a page select on the session to select the class.. just not sure how to deal with this since i'm guessing the page connection between an item in a PageTable is hidden?
-
@nico - good solution, only issue is what if the editor enters some stuff in the wysiwyg, and then later decides to switch to raw; the pipe wouldn't work right, so maybe instead use the checkbox to determine which to show on output? echo $page->use_wysiwyg==0 ? $page->body_raw : $page->body;
-
Displaying script depending on what template page is showing?
Macrura replied to n0sleeves's topic in Getting Started
if you say need to show a script on multiple templates , then you can use $page->is, like this; <?php if ($page->is('template=work-index|gallery|videos')) { ?> scripts here <?php } ?> and when you start setting up to use AIOM+, you can then us selectors to load particular scripts with a processwire selector: <?php $jsfiles = array('assets/js/plugins.js', array('loadOn' => 'template=work-index', 'files' => array( 'assets/3rd/dataTables/jquery.dataTables.min.js', 'assets/3rd/magnific/jquery.magnific-popup.min.js' ) ), 'assets/js/main.js', 'assets/js/vendor/retina.js', ); ?> <script type="text/javascript" src="<?php echo AIOM::JS($jsfiles); ?>"></script> -
@Horst - that would be great, sounds like a perfect module name! I also see from looking at the link that adrian has here that there could be an issue with the @ character in a filename...
- 25 replies
-
- responsive
- bootstrap
-
(and 4 more)
Tagged with:
-
@Horst - according to Apple, the naming convention must be @2x, and that has to be the last part of the image name, unless you are adding device-specific images (-ipad, -iphone); I also actually just discovered thanks you you and @MadeMyDay, that the retina.js library also supports an override using data-at2x attributes. <img src="/images/my_image.png" data-at2x="http://example.com/my_image@2x.png" /> so that would be an easy way to do this in PW.... but still, having a module generate these instead of specifying manually would be cool!
- 25 replies
-
- 3
-
- responsive
- bootstrap
-
(and 4 more)
Tagged with:
-
@MadeMyDay, this is amazing, and thanks so much for the examples; The site currently uses the retina.js which as far as i know looks for an image of the same name, but with the @2x appended to the basename; so that's what i was referring to (sorry it wasn't that clear)... i think about a module for retina that would allow users to for example tag an image as 'retina' and then the module would rename the image, adding the @2x to the basename, though i can't get my head around how this would interact with image sizer; anyone else using retina.js? in june/july i will be doing a painter's website, so thanks to your info i will be incorporating the picturefill for retina... looking forward..
- 25 replies
-
- responsive
- bootstrap
-
(and 4 more)
Tagged with:
-
hanna codes have proven invaluable for letting end user clients be able to insert things that require complex markup, such as accordions, tabs, galleries; i've used it for links to internal pages, audio players, phone and contact info, counts of pages (for example "We now offer [[count template=class]] classes!"), lists of attached documents, lists of external links, child pages etc..
-
@MadeMyDay - many thanks for taking a look at this! yes, the little animated gif is a pain, it's part of the fresco skin, but alas this is a very low budget project and i've already done 2x the work i was paid! Thanks for the link to picturefill. this does bring up the issue though of how to handle retina images withing processwire; for the hardcoded images in the templates folder i can easily add an @2x version; but within processwire images management, i wonder how to be able to have an @2x version present, say generated from a single uploaded version; most of the images on this site are probably double the size they are being output...
- 25 replies
-
- responsive
- bootstrap
-
(and 4 more)
Tagged with:
-
@christophe - cheers, that's how i was going to search, but you make it easy for me... problem fixed! @PhotoWebMax - thank you for looking at this! the contact form is using the awesome formbuilder; as for the hanna codes, they are shortcodes; so for this site, in order to give the management people the ability to have control over the layout, hanna code outputs the markup for things like widgets, and then you can specify parameters to the hanna code; so for example to output a link of all PDF files with the tag 'article', the hanna code tag is [[downloads tag=article]] and then this can be put inline in the body text; i also have a special textarea field for the sidebar where you can place as many widgets as necessary, like slider galleries, pop-up galleries, audio players, etc..
- 25 replies
-
- 1
-
- responsive
- bootstrap
-
(and 4 more)
Tagged with:
-
wow, super cool design...looking forward!
-
Coda 2 most of the time, also using Sublime Text to clean things up (coda is very convenient, but lacks those line up lines, and double cursor)
-
many many thanks to all who took a look at this! @pwired - thanks for pointing that out; yes, probably risky to set a 300 weight on a google font, i guess the fallback font didn't like it... I had checked this on a lot of machines/browsers, but i didn't see the issue you encountered... @Pete - thanks so much for looking at the site and finding that error...do you happen to remember where? i tried looking for it but i can't find that error...
- 25 replies
-
- responsive
- bootstrap
-
(and 4 more)
Tagged with:
-
new site just launched... http://www.charleswuorinen.com/ major modules that were essential: admin template columns AIOM+ colorpicker (for custom page background colors) Font Awesome Page Label Form Builder ProCache jQuery DataTables Modules Manager Changelog Get Video Thumbs Field Change Notifier Hanna Code Redirects Template Notes Version Control Some custom modules for auto page titles, and custom page for managing works Front end Bootstrap Masonry/Isotope Flexslider dataTables Magnific Popup Soundmanager2 Fresco lighbox html5 video (using jackbox) extensively used Hanna codes to output lists of links, PDFs in various places; hanna code is also outputting the music players, scrolling flexslider galleries etc; the compositions list is using dataTables, and shows extra info in a magnific lightbox, which loads from ajax... once again, a site that really could not have been realized without PW!
- 25 replies
-
- 15
-
- responsive
- bootstrap
-
(and 4 more)
Tagged with:
-
well they already have a logo, all the images; i can't see this taking more than 50-60 hrs if i did it with PW+Foxy
- 69 replies
-
- e-commerce
- digital downloads
-
(and 2 more)
Tagged with:
-
How about this question: If you had to build a ecommerce website today from scratch for a budget of about $4,000 USD, what to use? (ex. Processwire+ FC, Shopify, Magento, BigCommerce etc. or any solution mentioned here..._
- 69 replies
-
- e-commerce
- digital downloads
-
(and 2 more)
Tagged with:
-
1.) well the whole point of doing this in processwire would be that you wouldn't need an integrated music player; you would use whatever music player you want. I prefer soundmanager2. You would then have the ability to use PW's drag and drop uploader for files; 2.) selling digital assets is quite easy these days, there are many services out there, like fetchapp which for example can integrate with FC (http://www.foxycart.com/features/integrations/fetch ) 3.) if you built it with PW, the system wouldn't need to integrate, it would already be integrated (? right) 4.) to maintain statistics would simply require reading the foxycart's XML feed and then creating or updating records within PW; a very easy thing to do; Having said all that, and being quite sure you could build a very good music download store with PW at a fraction of what it would cost to write from scratch, i have not yet used foxycart and fetchapp for a downloads store yet; I have built 1 shop for physical goods and one for class registrations, both with Foxycart. The only thing stopping me from building a music downloads store with PW is the lack of funding from the labels i work with, and the fact that they both already have shops running on Joomla/Maian Media, which works well enough and doesn't cost anything in terms of monthly fees (whereas FC has not only a monthly fee, but you also need to have a merchant account for credit cards); the next thing to consider would be to write a PayPal integration for for Apeisa's shop module, and somehow link into fetchapp, and thereby bypass foxycart and CC processing...
- 69 replies
-
- 2
-
- e-commerce
- digital downloads
-
(and 2 more)
Tagged with:
-
works really well, thanks!