Sign in to follow this  
Followers 0
franciccio-ITALIANO

field
200+200+200 Field-Text/url/textarea into 1 Template

2 posts in this topic

Hi, excuse me but I need any suggest...

I want to create 1 page of my site with 200 plants, 200 description and 200 link to another page.

I begin put in 1 Template 2 field-text, and I see that it appear in Field-List!
If I create 200+200+200 field... I see all in tha list!

BUT

If I create 200 article by filed-textarea, I don't see it in Field-List!
I create yet 75 article in 75 pages, but I don't see it in Field-List!

What I don't understand? :/  

Share this post


Link to post
Share on other sites

Hi - I'm totally not following your post.

However, based on your 2nd sentence, this would be my answer:

  1. Create template called plant
    1. add 3 fields
      1. Title (default)
      2. Type: textarea; Title: Description (optionally use CK editor)
      3. Type: page reference; Title: Page Select (page_select); configure this to select the link to another page
  2. Create template called plant-index
    1. one field, title;
    2. configure the family settings to allow children of template plant
    3. configure the allow new pages to 1
    4. Create a new page using this template
  3. Go back to plant template and family settings, no children and plant-index for allowed parent
  4. Go to the page tree and hover over the Plant Index, then 'new' - this will give you a new plant
  5. Add your title, description and select the page you want to link to, save
  6. Repeat steps 4-5, 199 more times.
2 people like this

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By FIA2008
      I have a hook to change the template file on a certain page. This is not working at the moment for some reason.
      The usual location to place templates is under /site/template. Because the template should only be available in my module, I want my template file to be in /site/modules/mymodule/view/mytemplate.php
      When I place my file in the usual template location, it works fine. But when I place the file in my module folder, it doesn't work. When I var_dump the $page->template->filename variable, the location of the template file is correct and maps to my module folder. So everything seems to be correct, but somehow it's not working but I can't figure out the problem.
       
      Does anyone know how to solve this?
    • By Alex CA
      I am a newbie to Processwire and have been given a task to add some features to a website that has been already been developed.
      One of the fields (say Filed A), is of type Page. There are 100+pages in field A.
      A template Temp B uses this Field A and just displays the name of the pages of type Filed A selected for the page which uses the template B.
      Now, since there are many pages in Field A, it is displayed as a list and its gets difficult to scroll through the entire list in the admin page to find and add a particular entry from Field A.
      Could someone guide me if I could have a dynamic search bar for this field A which would work similar to how the search works on the processwire admin page?
      I want this search bar to be displayed right above the list of FieldA which will then dynamically improve the results as I type in the search box
    • By mikeuk
      I've been experimenting with field type Page, to add a page within a page (to replicate a block like system).
      I encountered some issues rendering the results, and while debugging and displaying the $page->fieldtypePage object I realised it was huge. I mean 1 minute to display huge.
      Even though in normal operation, printing out the whole object wouldn't be necessary. However I presume having an object that large must affect site performance.
      I won't be using this field type Page any more because I'm a bit of a fanatic for clean code and good performance. But in general, what do you think? Should this be submitted as a bug? If so, what's the correct procedure for that?
    • By mikeuk
      I'm confused by how Processwire should display custom fields.
      I have Home page set up with a field type Page (called 'blocks'), and that field has one page selected (called 'footer'), and that page contains 3 fields.
      The idea is that this footer page is reusable as a block on any other page, while also being fully editable in the backend (and only needing to be edited once to change on all pages). This is as close to a Drupal blocks approach as I could get.
      In principal, certainly from the backend, this is working fine. It's clear enough for a site editor.
      The issue is how to display this 'blocks' field (the page attached to it and content of fields that page contains). This system only works if I can display that field, without needing to specify or hard code the page name within the field, or fields within that page (because this may change later). The one constant will be that the 'blocks' field is always linked to selected page templates.
      Based on what I understand of Processwire logic, because I display the title with $page->title, I would have expected the following to work:
      $page->blocks or 
      $page->fields->get('blocks') This however only returns what I presume is the field ID.
      I have looked through the docs, but they are light on highlighting typical uses (perhaps an example for each api element that shows how it works and why it exists in relation to backend data to frontend display, similar to the PHP manual. Something perhaps I can help with at a later date).
      I also think this is a type of issue can be a deal-breaker for new users because of the logic gap ($page->title outputs field content, $page->blocks outputs what might be field ID), and us newcomers can be an impatient group!
      So I hope solutions here will be a useful addition to the docs. After I learn how to deal with this, I'll add any info that might be useful for newcomers.
    • By Cengiz Deniz
      I am making a aporism site.  In my main page I put pepople and their apohrisms.
      https://cdeniz.com/kisiler/
      In another page I made tags.
      https://cdeniz.com/konular/
      Finaly i am making tag page. Related aphorisms will be together.
      https://cdeniz.com/konular/sevgi/
      and its source:
      $kisiler= $pages->find("template=kisi,sort=title,repeater_ozlusoz=[ozlusoz_konusu=$page->id]"); $n=1; foreach ($kisiler as $kisi) { foreach($kisi->repeater_ozlusoz as $aforism) { $tags = ''; foreach ($aforism->ozlusoz_konusu as $tag) { $tags .= '<a href="'.$tag->url.'">'.$tag->title.'</a>&nbsp; &nbsp;'; } echo '<p>'.$n.'. <a href="'. $kisi->url .'">'.$kisi->title.'</a> : "<i>'. $aforism->ozlusoz.'</i>"<br/>&nbsp; &nbsp; Etiketler: '.$tags.' </p>'; $n=$n+1; } echo "<hr>"; } I passed very big code issues but now i can not go more. In tag the list related aphorisms come but with other aphorism which are belonging to person.

      Tag is "Sevgi". But second aphorism should be in the list. I could not exclude.
      Sorry for my english. Thank you very much for your helps