Jump to content

mr-fan

Members
  • Posts

    848
  • Joined

  • Last visited

  • Days Won

    4

Posts posted by mr-fan

  1. A addtitonal approach would be js....in combination with AdminCustomFiles module.

    https://modules.processwire.com/modules/admin-custom-files/

    i use this to change the href of the view button where i've events that their single template creates an .ics file output and the editor only should visit/see the overviewpage....here is my example.

    like in the module described a file called ProcessPageEdit.js under /templates/AdminCustomFiles/ folder:

    //used in a PW 2.7.x installation!
    //change the /events/ links in backend page edit for preview the events page not the .ics file!
    $(document).ready(function() {
        $("a#_ProcessPageEditView[href*=events]").addClass('found').attr("href", "/events/");
    });

    but the hook methode direct via PHP is the better way on more complex url creating....just mentioned my workaround

  2. 4 hours ago, thetuningspoon said:

    It doesn't feel very "ProcessWirey" or very scalable to me though

    if you dive deepinto URL segments you will feel some "ProcessWires", too ;)

    It's just to build the urls/structur that you need independently from your content storage in page tree...this is very scalable since you can optimize your pagetree (for editors, contenttype, datastructure) and the frontend presentation seperately.

  3. Well it is more a example of finding the right model to store things....if you would have 30 departments you would possible choose methode 2 or 3 for storing this kind of things...but

    the first model describes the most simpel way to store 1:1 connections - one member : one department....

    Another thing that is here important this models are all show the usage of the pagetree in ProcessWire so a editor with a "small" company with "normal" amounth of departments could easy and fast manage his content....and we could fast get the data on frontend.

    On the Template side of life there you could read again on this from kongondo:

    Quote

    You have the choice of creating one template file for each category template as well. I prefer the method of using one main template file (see this thread). You could do that and have all Departments use different templates but a single template file. In the template file you can include code to pull in, for example, the file “technician.inc” to display the relevant content when pages using the template “Technician” are viewed.

    These are just the basic examples for beginners - if you manage complex data and complex editing you could or better will use of ListerPro or even a own admin dashboard, hinding content from the pagetree that confuse the editors and make other strange but always possible things for managing complex content and at the same time give your users a good ui for editing this content.

    regards mr-fan

    • Like 3
  4. Many new things are hidden in blogposts...like

    $urls

    for example is not in the API Reference....or just i did not find it.

    no problem for me since i like finding treasures and loot on the way - but just wanna mention it.

    Is there a chance to get involved or people could help extracting important bits from blogposts to the docs?

    • Like 4
  5. Just working on some smaller projects and take the step into the actual master/dev version and all the new methods and api chunks that are coming with the 3.x series...

    since i'm not always build websites i'm not always go with the brand new things and put them in my workflow....there is a 24 per day timelimit i think...;)

    BUT actual i dive deep in markup regions....and holy shit this feature ROCKS!

    It should put in place better than in some blogposts:

    http://processwire.com/blog/posts/processwire-3.0.49-introduces-a-new-template-file-strategy/

    http://processwire.com/blog/posts/processwire-3.0.62-and-more-on-markup-regions/

    or can some admins make a headline in the official docs and link to the blogentries??

    This feature is to important to get missed for beginners and other users of PW!

    I'm just kick my whole workflow and change it for the markup regions....i'm feeling like xmas in summer ;) Thank you @ryan

    Best regards and happy "new" year....:P

    • Like 7
    • Thanks 1
  6. https://processwire.com/docs/tutorials/but-what-if-i-dont-know-how-to-code/part-1-pages-templates-fields-files/page2

    Quote

    When you create a new page you have to select a template. And that template has all the information that the page needs to know about what fields it should have and some other useful bits which we will worry about much later.

    Now, I am going to confuse you in a minute and tell you that ProcessWire has templates and template files, and though they are related to each other, they are not the same thing. So when you use the term template, you have to be certain that you are talking about the right thing.

    you could use a template without a file...just as kind of datacontainer....and collect/view/edit this data in a other template/file like /doodle1/ shows all data from its childpages/entries...

    templates without files are not visible in the frontend, but you could use the API to get them where you wanna show them...;)

    • Like 1
  7. Url can stay clean...

    ---doodles
    -----doodle1 (visible template that collects the entries for the doodle/poll ->url)
    --------entry1 (hidden page or no template - just a datacontainer with all fields you need)
    --------entry2 ....

    no changes everyone can reach a doddle via one link your-site.com/doddles/doddle1/   where you can show the existing entries and put a form for new ones...

    regards mr-fan

    • Like 1
  8. ...a "members" module is a bunch of possible features that someone could imagine or thinking that this features are part of such a typ of module...

    so costs are really wide rage for the punchline "members module"...

    Pay a module is everytime needed when someone really could save time of development.

    I think if you've a basic feature list - there would be a price that someone is willing to pay and save time! I would for shure - for now using frontenduser module and some own scripts but i would prefer shared and supported module to own construstions on securtiy parts of a project...

    Edit: (or you talking only about the message system...? Such a system is only a own dashboard page with some scripting and two templates for the data under a hidden admin page...for this special case i think the more experienced devs are building their own system very fast)

    regards mr-fan

  9. Just named the matrix field because for put data from local to web this feature is a great one on this fieldtype:

    Quote

    Copy-pasting CSV values. (Tip: you can copy paste directly from an Excel spreadsheet. Such values will be 'tab-delimited').

    Quote

    In _func.php I can make a function that renders the js script based on data available on that page. Logical?

    Yes you should create some PHP that renders the needed data for the javascript, or provide the data as JSON...many options again.

    regards mr-fan

    • Like 1
  10. For the data of a chart you could use repeaters....or pages (repeaters use pages in the background) - this could be interesting since there are modules for pages to import csv to pages and some tool that are provided via the module BatchChildEditor.

    But there are two options for table data available, too.

     

    and for sure the pro module table:

    https://processwire.com/api/modules/profields/table/

    On the frontend you have the free choice on what you whant - for example you could use http://www.chartjs.org/.

    regards mr-fan

    • Like 3
  11. Would be a task for

    You can save the data in that field and create one page per doodle/poll so you have a clean pagetree.

    ---doodles
    -----doodle1 (Matrix field with users and 3 columns for your entries, maybe some additional fields for title, descriptions and everything else)
    -----doodle2
    ...

    regards mr-fan

    • Like 1
  12. All this modules does almost what you wrote:

    - Central Image Management

    - Using a Template for Images (So a Image is a single "Page")

    If you need other things you could describe more in detail what you need. Since ProcessWire is hookable i don't thing editing Corefiles is a good idea.

    As a example you could take a look at this little snippet that use images in a folder structure

    https://github.com/mr-fan/AutoImagePages

    (But i don't use it anymore...)

    regards mr-fan

  13. If you go the "a image is a page" route you could take a look at this older basic image manager that works with template image and possible custom fields for them.

    There is a professional Media Manager for central orgranised media, too:

    And at least a modul called MediaLibrary the also works with a template for images and files so this could used and expanded, too:

     

    So as always many options to choose from ;)

    • Like 1
×
×
  • Create New...