-
Posts
12 -
Joined
-
Last visited
Everything posted by MarkW
-
Not that many ads and they will all be images with a link to another site. Sounds like what I want to do, too. Thanks for your input. Gives me a good idea what I need to do!
-
Anyone have suggestions on a module or implementation for creating, displaying, tracking ads? Thinking of WordPress ad manager plugins for scheduling, tracking view and impressions, clicks, etc.
-
How to get data from the PageArray instead of page_ids
MarkW replied to MarkW's topic in Getting Started
Thanks again, adrian! Worked perfectly! -
How to get data from the PageArray instead of page_ids
MarkW replied to MarkW's topic in Getting Started
Thank you very much. I will definitely give these a look and a try! -
How to get data from the PageArray instead of page_ids
MarkW replied to MarkW's topic in Getting Started
Thanks, Adrian! I've been using Ryan's skyscraper demo to try and put together something like IMdB. Here's the function I copied and modified to output the template data for my purposes. function renderVideoData($page) { $searchUrl = wire('config')->urls->root . "search/"; $na = "<span class='na'>n/a</span>"; $videos = ''; foreach($page->videos as $v) { $videos .= "\n\t<li><a href='{$v->url}'>{$v->title}</a></li>"; } $out = "\n<table id='video_data' class='table table-responsive'>" . "\n\t<tbody>" . "\n\t<tr><th>Title </th><td>" . ($page->title ? "<a href='$searchUrl?year={$page->title}'>{$page->title}</a>" : $na) . "</td></tr>" . "\n\t<tr><th>Synopsis</th><td>" . ($page->synopsis ? : $na) . "</td></tr>" . "\n\t<tr><th>Release Year</th><td>" . ($page->year ? "<a href='$searchUrl?year={$page->year}'>{$page->year}</a>" : $na) . "</td></tr>" . "\n\t<tr><th>Director</th><td>" . ($page->director ? "<a href='$searchUrl?director={$page->director}'>{$page->director}</a>" : $na) . "</td></tr>" . "\n\t<tr><th>Cast</th><td>" . ($page->cast ? : $na) . "</td></tr>" . "\n\t<tr><th>Franchise</th><td>" . ($page->franchise ? "<a href='$searchUrl?franchise={$page->franchise}'>{$page->franchise}</a>" : $na) . "</td></tr>" . "\n\t<tr><th>Language</th><td>" . ($page->language ? "<a href='$searchUrl?language={$page->language}'>{$page->language}</a>" : $na) . "</td></tr>" . "\n\t<tr><th>VOD Rights</th><td>" . ($page->vod_rights ? "<a href='$searchUrl?vod_rights={$page->vod_rights}'>{$page->vod_rights}</a>" : $na) . "</td></tr>" . "\n\t<tr><th>Running Time</th><td>" . ($page->running_time ? : $na) . "</td></tr>" . "\n\t<tr><th>Hue</th><td>" . ($page->hue->select_value ? : $na) . "</td></tr>" . "\n\t<tr><th>Rating</th><td>" . ($page->rating ? : $na) . "</td></tr>" . "\n\t<tr><th>Cost</th><td>" . "$" . ($page->cost ? : $na) . "</td></tr>" . "\n\t<tr><th>Country</th><td>" . ($page->country ? : $na) . "</td></tr>" . "\n\t<tr><th>Term</th><td>" . ($page->term ? : $na) . "</td></tr>" . "\n\t</tbody>" . "\n</table>" ; return $out; } I am getting decent results on my single video except that I get the page_ids. I can't figure out how to get the title of the page instead of the page_ids to show. In my example above, it would be actor's names. I came across Lostkobrakai's post about using two foreach's to find the multiselects but I am unclear how to implement that in my function or if I need a new function altogether. Maybe I should make a function just so I can reuse the multiselect foreach function whenever I need it? -
I have several fields on a site I am working on and want to pull values from a multiselect field but all I get are the page_ids. Any help would be appreciated. Thanks.
-
Wow, Ryan! Excellent work. My jaw hits the floor whenever you post stuff like this, which seems like constantly!
-
I really like the dropdown blurbs and reviews! Excellent work.
-
Agrio new website and corporate identity / branding
MarkW replied to Raymond Geerts's topic in Showcase
Wow! Super nice design! Excellent work. -
Hi Pete, thanks for the warm welcome! Yes, that's exactly what I was looking at. Here's generically what I need to do: Workflow Example contributor/author > proofer > editor > chief editor/publisher and to be able to fall back to the next level down if not yet approved, reject, or queue for publication. Everything is essentially a variation of this, but for each specified category (or I am guessing, each page template type in PW?). I have to run things through the workflow like: product reviews, music reviews, movie reviews, articles, products, illustrations, videos, advertisements, classified listings, etc. Glad to see it's on the RoadMap. Looks like PW has come a long way in a really short amount of time. I've just started playing with it on my desktop a bit, poking around and looking under the hood using the tutorials.
-
Hi everyone! Just ran across PW yesterday while searching for a better way to implement a project I'm currently working on. I am very impressed and very excited about what can be done so easily in PW. Having said that, being a total newbie to PW and having little luck searching around the forums, I was wondering if there was a way to implement multi-step Workflows like concrete5 Enterprise? Thanks!!