Jump to content

Macrura

PW-Moderators
  • Posts

    2,765
  • Joined

  • Last visited

  • Days Won

    40

Everything posted by Macrura

  1. you could definitely modify the code that was originally made by Soma, to do this.. https://processwire.com/talk/topic/2787-custom-menu-not-related-to-page-tree/?p=27275 i can make you a function do do what you need later on..
  2. but a slide could be a template, where each slide is one page, or the slider could be a template where the slides themselves are repeaters or page table, or images with regular or extended fields. the only way to get the page to be configurable how you want is to use the page table extended
  3. does it work if you disable the hanna code on that? i'm guessing from what you are saying, no...
  4. right - ok cool.. i'm sure once you see how easy it is to build a mega menu with PW you'll be awestruck... so initially to get it going, can you provide some details of the page structure, and whether you want to build a custom menu or build the menu off pages..
  5. if you're asking about how to structure the code to output that markup, then i can say that if i had to do a mega menu, i would setup a page tree branch for the menu items and use fields and templates to create the nested structure you need; either that or use options/page selects to specify the structure and then create a function to parse the pages into the megamenu if you could post your current code that might help... it really comes down to where you're getting the pages from and where these headlines are coming from... are they the parent page of the menu item, or parent page of a page that you're pulling into the menu
  6. does team body have hanna code formatter enabled?
  7. maybe this could work? http://modules.processwire.com/modules/fieldtype-page-table-extended/
  8. ended up using this: http://css-tricks.com/snippets/php/generate-expiring-amazon-s3-link/ so i have a processwire page that checks to see if the url to the download is still valid (# of clicks, or date expiration) and then this one liner generates the link to the file on s3, which expires anyway in 5 minutes, and is authenticated. $fileUrl = el_s3_getTemporaryLink($key, $secret, $bucket, $awsPath); i would think it would be pretty easy to 'override' the local storage of a download in padloper with this function and then redirect the browser to the aws file url...
  9. yeah, i'm hoping to do the same thing, where the file is hosted on s3; only issue i can think of is this would have to be done with a header redirect, and then anyone viewing the console would be able to see the raw s3 URL (?).. but i probably don't know enough to say for sure..
  10. @netcarver - thanks, yes, this fixed it!
  11. @nik, great and essential module, using it all the time; Also learned from your code and was able to create some other modules that add their own tab. One question though - is it possible to add the tab before the view link? Then when you click it, the buttons for save would be able to stay below the tab frame.. i guess it would somehow need to append the tab before the save button and view links...
  12. using that would have required using html files; where with the way my docs 'system' works, it is all being done with pages, so users can add and modify existing docs, links docs by template or page.. much easier!
  13. you can create a PDF from a PW page, using the PDF module... it works great
  14. @mr-fan, using PW pages for the docs, not html files; and then this module pulls them into the docs tab: https://gist.github.com/outflux3/3e76a1338b61d708157c posted also more here.. https://processwire.com/talk/topic/8392-simple-built-in-docs/?p=86813
  15. Using this module, in combination with the Template Select module, it is easily possible to show inline related documentation on the edit page. Same setup as above, but adding the template select field on the doc template. could also be further modified to support showing a doc only on a specified page, or children of a page, using selector fieldtype.. example module https://gist.github.com/outflux3/3e76a1338b61d708157c
  16. @cstevensjr - yes, it's super easy, this how i do it... 1.) in site plugins, upload the entire SM2 folder that can be downloaded here: http://www.schillmania.com/projects/soundmanager2/doc/download/ 2.) create an alias variable in the init or in config to the plugins folder, e.g. config: $config->plugins = '/site/plugins/'; or $config->plugins = '/site/templates/plugins/'; or _init $pluginFolder = $config->urls->templates . 'plugins/'; note - this example is using both the player buttons and the bar-ui, thus loading both.. IN THE HEAD <link rel="stylesheet" href="<?=$pluginFolder?>sm2/css/mp3-player-button.css" type="text/css" /> <link rel="stylesheet" href="<?=$pluginFolder?>sm2/css/bar-ui.css" type="text/css" /> in foot <!-- Soundmanager2 ============================================= --> <script type="text/javascript" src="<?php echo $pluginFolder?>sm2/script/soundmanager2-nodebug-jsmin.js"></script> <script type="text/javascript" src="<?php echo $pluginFolder?>sm2/script/mp3-player-button.js"></script> <script type="text/javascript" src="<?php echo $pluginFolder?>sm2/script/bar-ui.js"></script> <script> soundManager.setup({ // required: path to directory containing SM2 SWF files url: '<?php echo $pluginFolder?>sm2/swf/' }); </script> where you want to show the player you can copy the markup from the SM2 examples; for mp3 player buttons you just add the class.. "<a href='{$audio->audio_file->url}' title='{$audio->title} (audio preview)' class='sm2_button tip'></a>";
  17. This is a site for composer, conductor, and NYU composition professor Louis Karchin. http://louiskarchin.com/ The site is based around the works which are presented as a filterable datatable, with inline audio player (soundmanager2).. There is some ajax happening on the works page to pull up details about a work in a popup. a lot of the initial work was importing from the original site as well as from CSV files of the works, so there were various custom import/api scripts used to get all the data in.. As with other recent sites, this site has a admin docs section for reference, as well as inline docs on the edit page, using a simple module based on Nik's page references tab. also this uses the configurable widgets system: and i have an admin page for backups, though the backups run automatically on a cron (using the SmartBackup script): this site benefited from a lot of modules, namely: AdminCustomFiles AdminCustomPages PageDocsTab AdminPageSelectEditLlinks AIOM+ FieldtypeDataStructure FieldTypeTemplates InputfieldSelectExtended HannaCode ProcessRedirects ProcessDiagnostics Profields Table Formbuilder Procache Lister Pro
  18. @Rinaldi, why not try the bitnami stack, make your site and then once it's done come back for some instructions on how to take it live?
  19. @renobird, i would be keen on learning more about having comments as part of an admin page - is it possible to have comments right on an editor page?
  20. @dazzyweb, thanks, this is really cool.
  21. @pwired - so far i have never had to solicit clients.. so far riding the referral chain!
  22. @adrian and diogo - many thanks for looking/commenting! I changed the output and i think it fixed that - thanks for noticing that problem; it was bugging me... was a case of moving the id from the li to the a, so should be correct now.. and thanks to all for checking this out!
  23. This is a recently launched project, proudly powered by Processwire. https://www.bethfalk.com/ Mini Case Study: ...the site was meant to be a quick, simple job, but did get 'interesting' after it started.. The client chose the 'Centum' template, something of a classic by Vasterad (also aval. as a wordpress and drupal theme) but the template had some technical problems and a lot of things were fixed/improved/re-coded. I think this is a great 'theme' for this sort of site.. it's clean and had enough functionality built in to make my job a bit simpler... I'm using the following modules: Admin Custom Files Admin Custom Pages AIOM+ Email Obfuscation Fieldtype DataStructure Profields Table Formbuilder Procache Form Save Reminder Hanna Code (for tabs and accordions) Hanna Code Helper Process Diagnostics Page Lister Pro Site Utilities (custom module, used for populating default slide settings in a table, for homepage slider).. BBCode These topics all relate to functionality that was developed for this project (and some other projects all bundled together during the last 4 months): https://processwire.com/talk/topic/8373-use-delimited-texarea-table-or-yaml-for-settings/#entry81202 https://processwire.com/talk/topic/8635-simple-example-for-widget-management/#entry84623 https://processwire.com/talk/topic/8392-simple-built-in-docs/#entry82915 Other related topics: https://processwire.com/talk/topic/8350-module-fieldtype-yaml/?p=80908 Where possible I tried to use some schema.org microformats; to be continued..
  24. this tutorial shows an application of the field: https://processwire.com/talk/topic/8635-simple-example-for-widget-management/?p=83418 whereby the user is able to select what pages a widget shows on, using a selector, or series of selectors.. so in this scenario, a widget can end up showing under some very complex/flexible circumstances, such as: - all child pages of a particular page - selected pages almost anything you can think of in terms of selecting a page with the selector api
  25. Here's a drop-in paste-in for getting the "view" tab on the edit screen to open in a new window: (put this in your ProcessPageEdit.js ) $(function(){ $('a#_ProcessPageEditView').click(function(){ window.open(this.href); return false; }); });
×
×
  • Create New...