Jump to content

jsantari

Members
  • Posts

    88
  • Joined

  • Last visited

Everything posted by jsantari

  1. I have two image type fields in my template. One is used to upload images to be used for a slideshow on the page the other is general images that a user can embed into the page content using TinyMCE. I'd like only the general images to be available in TinyMCE when you click on the image toolbar icon. Is there anyway to limit the popup image selection dialog to just one of the two fields?
  2. Fredi is great! I'll look forward to the arrival of that feature. I'm trying to prototype a possible pw project where I want a group of users (special members) to edit only their content pages for a couple of different templates. I am using a special role as a flag to limit the list of displayed fredi edit links if a user is logged in, has that role and the created_users_id='.$user->id. This works well so far. I'm wondering if that might be a feature that could somehow be incorporated into Fredi? For the moment I got around the issue of not being able to add by creating a form to add a new page title after the list of current user edit links then used the api to create the page. Once created it appears in the list and they can edit it to complete the data. A bit clunky but it works ok.
  3. I've read through the Fredi - for front end editing thread and saw mention of using to Fredi to add new pages. Did this feature ever get added or is it in the works?
  4. Thanks Ryan - after hours of trying to figure out what I was missing in access control it turns out to be something I wouldn't have thought about or noticed until it was working and I tried to link back. So I guess it makes sense for RSS that you would need to have a template to be viewable. Works as expected now.
  5. No - pages are not hidden and are published.
  6. I've found out the whole problem with this. It is caused by the this line of code in the modules renderFeed method. if(!$page->viewable()) continue; If I comment the line out then it works fine - looks like a bug of some type?
  7. The whole problem here is on the feed generation side. I can give the reader side any valid rss source and it reads it fine. MarkupRSS just isn't generating the feed for some reason.
  8. I'm just trying to do a proof of concept so I started with the default profile and simply added the pieces on both ends that I needed ie; vacancies/vacancy and the reader on the other end.So yes those are pages in my tree.
  9. Just saw your second post. Yes they are two domains. Isn't the whole point behind rss to allow you to read rss feeds from other domains? The code I am using on the reader side is right out of the documentation for MarkupLoadRSS Example #2: Using the built-in rendering ---------------------------------------- $rss = $modules->get("MarkupLoadRSS"); echo $rss->render("http://www.di.net/articles/rss/");
  10. That is how I originally set things up, then changed to the vacancies.php. I have now created a new page named rss-vacancies which I have set to use a template file named rss.php. The vacancies.php file has been renamed to rss.php. So my include file now contains this to load the rss. // include vacancies via rss $rss = wire('modules')->get("MarkupLoadRSS"); echo $rss->render("http://undpw.local:8888/rss-vacancies"); Now calling this url directly. http://undpw.local:8888/rss-vacancies/ I see this returned by rss.php <rss version="2.0"> <channel> <title>Latest updates</title> <link>http://undpw.local:8888/rss-vacancies/</link> <description>The most recent vacancies updated on my site</description> <pubDate>Tue, 06 Aug 2013 13:34:03 -0400</pubDate> <ttl>60</ttl> </channel> </rss> On the reader end of things I now only get this. <ul class="MarkupLoadRSS"> </ul>
  11. This code produces the expected results. $items = $pages->find("template=vacancy, limit=10, sort=-modified"); if(count($items)) echo 'Found: '.count($items).' '.$items; It seems that when it's rendered there is a problem. Let me try to explain how I have this setup and show the code being used and the results I am seeing. I have two sites (I'll call one feeder the other reader). On the feeder side I have a page named vacancies with child level pages for each vacancy using the template vacancy. The above find yields the correct page numbers. The vacancies page uses a template named vacancies (just a title). In the vacancies.php template file I have placed this code for the RSS feed. // retrieve the RSS module $rss = $modules->get("MarkupRSS"); // configure the feed. see the actual module file for more optional config options. $rss->title = "Latest updates"; $rss->description = "The most recent vacancies updated on my site"; // find the pages you want to appear in the feed. // this can be any group of pages returned by $pages->find() or $page->children(), etc. $items = $pages->find("limit=10, sort=-modified"); //if(count($items)) echo 'Found: '.count($items).' '.$items; // send the output of the RSS feed, and you are done $rss->render($items); On the reader side I have a function which dynamically executes an include to read the rss feed, this is the include file. // include vacancies via rss from feeder site $rss = wire('modules')->get("MarkupLoadRSS"); $rss->render("http://undpw.local:8888/vacancies"); If I call the url http://undpw.local:8888/vacancies directly I get this output. <rss version="2.0"> <channel> <title>Latest updates</title> <link>http://undpw.local:8888/vacancies/</link> <description>The most recent vacancies updated on my site</description> <pubDate>Tue, 06 Aug 2013 12:22:38 -0400</pubDate> <ttl>60</ttl> <item> <title>Selector test</title> <description> <![CDATA[ ]]> </description> <pubDate>Mon, 05 Aug 2013 15:40:17 -0400</pubDate> <link> http://undpw.local:8888/webadmin/setup/selector-test/ </link> <guid> http://undpw.local:8888/webadmin/setup/selector-test/ </guid> </item> </channel> </rss> When called via the reader I see this output. <ul class="MarkupLoadRSS"> <li> <a href="http://undpw.local:8888/about/what/">Child page example 1</a> <time datetime="2010-10-25T23:21:34-04:00">October 25, 2010, 11:21 pm</time> <div>Ut capio feugiat saepius torqueo olimIn utinam facilisi eum vicis feugait nimisIusto incassum appellatio cui macto genitus vel. Lobortis aliquam luctus,</div> </li> <li> <a href="http://undpw.local:8888/">Home</a> <time datetime="1969-12-31T19:00:00-05:00">December 31, 1969, 7:00 pm</time> <div>What is ProcessWire?ProcessWire gives you full control over your fields, templates and markup. It provides a powerful template system that works the way you</div> </li> <li> <a href="http://undpw.local:8888/templates/">Templates</a> <time datetime="2010-10-26T01:59:44-04:00">October 26, 2010, 1:59 am</time> <div>The site template files are located in /site/templates/Each of the template files in this site profile includes the header template (head.inc),</div> </li> <li> <a href="http://undpw.local:8888/about/">About</a> <time datetime="2010-10-25T22:39:33-04:00">October 25, 2010, 10:39 pm</time> <div>Si lobortis singularis genitus ibidem saluto.Dolore ad nunc, mos accumsan paratus duis suscipit luptatum facilisis macto uxor iaceo quadrum. Demoveo,</div> </li> <li> <a href="http://undpw.local:8888/site-map/">Site Map</a> <time datetime="2010-11-30T21:16:49-05:00">November 30, 2010, 9:16 pm</time> <div></div> </li> <li> <a href="http://undpw.local:8888/about/background/">Child page example 2</a> <time datetime="2010-11-29T22:11:36-05:00">November 29, 2010, 10:11 pm</time> <div>Pertineo vel dignissim, natu letalis fere odioSi lobortis singularis genitus ibidem salutoMagna in gemino, gilvus iusto capto jugis abdo mos aptent acsi qui.</div> </li> </ul> I have no idea what is going here.
  12. The include=all I was just playing with - you are right it wouldn't make sense normally. With out the template=vacancy I get some weird results for the items. <rss version="2.0"> <channel> <title>Latest updates</title> <link>http://undpw.local:8888/rss/vacancies/</link> <description>The most recent vacancies updated on my site</description> <pubDate>Mon, 05 Aug 2013 17:44:37 -0400</pubDate> <ttl>60</ttl> <item> <title>Selector test</title> <description> <![CDATA[ ]]> </description> <pubDate>Mon, 05 Aug 2013 15:40:17 -0400</pubDate> <link> http://undpw.local:8888/webadmin/setup/selector-test/ </link> <guid> http://undpw.local:8888/webadmin/setup/selector-test/ </guid> </item> <item> <title>vacancies</title> <description> <![CDATA[ ]]> </description> <pubDate>Mon, 05 Aug 2013 13:14:25 -0400</pubDate> <link>http://undpw.local:8888/rss/vacancies/</link> <guid>http://undpw.local:8888/rss/vacancies/</guid> </item> <item> <title>RSS</title> <description> <![CDATA[ ]]> </description> <pubDate>Mon, 05 Aug 2013 13:13:40 -0400</pubDate> <link>http://undpw.local:8888/rss/</link> <guid>http://undpw.local:8888/rss/</guid> </item> </channel> </rss>
  13. I'm trying to us the MarkupRSS to generate a feed and have a problem with the selector. I've tested the selector with the SelectorTest and it works fine. My output for the rss however only shows channel information using the following based on the example code. // retrieve the RSS module $rss = $modules->get("MarkupRSS"); // configure the feed. see the actual module file for more optional config options. $rss->title = "Latest updates"; $rss->description = "The most recent vacancies updated on my site"; // find the pages you want to appear in the feed. // this can be any group of pages returned by $pages->find() or $page->children(), etc. $items = $pages->find("template=vacancy, include=all, limit=10, sort=-modified"); // send the output of the RSS feed, and you are done $rss->render($items); Here is what I get: <rss version="2.0"> <channel> <title>Latest updates</title> <link>http://undpw.local:8888/rss/vacancies/</link> <description>The most recent vacancies updated on my site</description> <pubDate>Mon, 05 Aug 2013 16:56:31 -0400</pubDate> <ttl>60</ttl> </channel> </rss>
  14. I've got some front end code that I want to load a RSS feed using the MarkupLoadRSS module. I can get it to work from my template but I want to use it to load dynamically from a function I have. Inside the function it does not see the $modules object when trying to do a get for the module. How should I reference the $modules object within my function?
  15. Sure - here is my sortcode setup $shortcode = $modules->get('MarkupShortcodes'); $shortcode->add('youtube', function($atts){ return '<iframe width="560" height="315" src="http://www.youtube.com/embed/'.$atts['name'].'" frameborder="0" allowfullscreen></iframe>'; }); $shortcode->add('myname', function($atts){ return 'My name is '.$atts['name']; }); Here is what is in my content page. One Bedroom [youtube name="Akmcolo_ETE" ]One Bedroom - this one does not appear after I add the second one below One Bedroom with Whirlpool [youtube name="bD0D_LotZQo" ]Two Bedroom [myname name="JIM" /] - testing a second shortcode
  16. Trying out the shortcodes and it works but - I created a shortcode for youtube then put one on a page and it works fine. I then added a second one for another video and the second one works but the first one is now not parsed? I tested this a bit further and I can have a second shortcode on a page if it has a different name.
  17. Ok - I'm really new to PW so that wasn't obvious to me. No problem with frontend lightboxes, I've done many over the years. Thanks.
  18. OK if I am understanding this then, the module just sets things up for wirebox and I manually create a gallery from my images (like in the gallery tutorial) using html syntax of Fancybox?
  19. I've installed the module wirebox but don't see any information on how to actually make use of it. Where do I find that?
  20. It was the publish/unpublish that I needed to add to editor role. thanks for the help.
  21. I've set the home template to so the editor role has edit page abilities but I still only get view rights when I log in with the user who has been assigned the editor role.
  22. Trying to add my first user with primarily edit only rights. I've added a user manager and added them to the editor role. When I log in with that user I can only view pages. My editor role has the permissions for delete, edit and view but I'm only seeing view. What am I missing here?
×
×
  • Create New...