-
Posts
92 -
Joined
-
Last visited
Everything posted by howdytom
-
Hi there, Newbie question: I would like to choose and link to an internal page within repeater items. I have created a repeater with an image and Page Reference field called front_repeater. Page Reference field value type is set to 'Single page'. How can I show the Page Reference title and link on a repeater? Here's what I tried so far. <?php if(count($page->front_repeater)) { foreach($page->front_repeater->find("limit=10") as $item) { $front_img_800 = $item->front_img_800->size(800,0,); echo "<img src='$front_img_800->url'>"; echo "<a href='$item->front_productpage->url'"; echo "<h2>$item->front_productpage->title</h2>"; } } Unfortunately it still shows: 1022->title 1023->title I really appreciate any reply.
-
@flydev ?? Fantastic. Thank you so much. This is helping a lot.
- 39 replies
-
- 1
-
-
- responsive
- bootstrap
-
(and 3 more)
Tagged with:
-
I really appreciate your effort and time you put in this.
- 39 replies
-
- 1
-
-
- responsive
- bootstrap
-
(and 3 more)
Tagged with:
-
@flydev ?? Wow. This is fantastic. It would be really great to check out your bootstrap4 PW implementation. Take your time. No need to hurry. Merci
- 39 replies
-
- 3
-
-
- responsive
- bootstrap
-
(and 3 more)
Tagged with:
-
@flydev ?? Is pwbs4 minimal profile still compatible with PW 3.0.148? I would love to test Bootstrap4 Carousel in PW. I am getting Syntax error on a fresh PW installation. SQLSTATE[42000]: Syntax error or access violation: 1067 Invalid default value for 'created' SQLSTATE[42000]: Syntax error or access violation: 1067 Invalid default value for 'created' SQLSTATE[42S02]: Base table or view not found: 1146 Table 'pw-bootstrap4minimal.modules' doesn't exist
- 39 replies
-
- 1
-
-
- responsive
- bootstrap
-
(and 3 more)
Tagged with:
-
Hi there, sorry for asking such a dump newbie question. I am trying to create a really simple minimal blog. How I can load image(s) from a template blog-post in my home.php? I am able to print fields e.g. titles, body, however images won't show up. Also image scaling doesn't work. The Field: images is set to "array if items". I really appreciate any reply. <!-- /.Load image from blog-blog template --> <?php $blogposts = $pages->find("template=blog-post"); foreach($blogposts as $blogpost){ $blogimages = $blogpost->images; $imgthumb = $blogimages->size(500, 300); echo "<img src='{$imgthumb->url}' alt='{$imgthumb->description}'>"; echo "<h2><a href='{$blogpost->url}' >{$blogpost->title}</a></h2>"; echo "<p>{$blogpost->body}</p>"; echo "<br>"; } ?>
-
How to simplify Templates for long blogposts
howdytom replied to howdytom's topic in Getting Started
Thank you. Yes, I have purchased ProFields. This is exactly I was looking for. Beautiful and fast! -
What is the best to way to structure my PW Template for long blogposts with repeating text paragraphs, images and custom code? I am looking for a flexible solution to add and rearrange text or images. A blogpost looks always different: --TEXT PARAGRAPH (CKEditor) --IMAGE --IMAGE --TEXT PARAGRAPH (CKEditor) --IMAGE --CUSTOM CODE FIELD --TEXT PARAGRAPH (CKEditor) Here's what I came up with so far... 1. One approach could be using CKEditor along with ckeditor config.autoGrow. However I don't like the idea to add all content into one giant textfield and with one looooong scrollbar. 2. Repeater module seems to be the right choice. But text and image fields are always bundled within the repeater, even when no text field is required. Editing long post could be really confusing. 3. ProFields and Repeater Matrix looks like the right solution I am looking for. According to the ProFields description it is possible to add, combine, arrange different fields in one Repeater. Is that correct? Thank you for any help.
-
ProcessWire + RepeaterMatrix + CSS Grid Page Builder Concept
howdytom replied to Jonathan Lahijani's topic in Dev Talk
really nice. Thanks for your sharing. -
Excellent. Thank you for your quick reply. Wireshell is exactly I was looking for.
- 2 replies
-
- command-line
- drush
-
(and 1 more)
Tagged with:
-
Hi there, I am a Drupal themer and sitebuilder for some time and consider switching to Processwire. In Drupal you can use Drush, a command-line shell for installing modules and clearing Cache… It really speeds up working with site projects. As I found out you can also use git or composer to install Processwire. However it looks like it's limited to Core only. Is that correct? Is it possible to use composer to install Processwire modules? Thank your for your help and pointing me in the right direction.
- 2 replies
-
- command-line
- drush
-
(and 1 more)
Tagged with: