Jump to content

Search the Community

Showing results for tags 'page'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Welcome to ProcessWire
    • News & Announcements
    • Showcase
    • Wishlist & Roadmap
  • Community Support
    • Getting Started
    • Tutorials
    • FAQs
    • General Support
    • API & Templates
    • Modules/Plugins
    • Themes and Profiles
    • Multi-Language Support
    • Security
    • Jobs
  • Off Topic
    • Pub
    • Dev Talk

Product Groups

  • Form Builder
  • ProFields
  • ProCache
  • ProMailer
  • Login Register Pro
  • ProDrafts
  • ListerPro
  • ProDevTools
  • Likes
  • Custom Development

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests

  1. Hello I want to know how I have to translate these texts I've marked in red in the below image: I've found these texts in wire\modules\Inputfield\InputfieldPage\InputfieldPage.module but as this module did not have files with .json or .zip extension, I can't load the texts I want to translate on Admin > Setup > Languages How I should translate them? Thanks
  2. Based on the structure below, "employee", "department" and "year" are simply place holder "pages". Each have been assigned a blank template and contain only a title field which is required. They serve no other purpose. The issue I was seeing is that I could access these pages in the url directly. For example, root/location1/employee/ would simply display a blank page. This is undesirable for me as it made me fell empty and marking the page as hidden in the back-end did not resolve the issue. So I saw the option unpublished in the back-end and it works perfectly. I then found Ryan's post here which explains a lot but this example I think deserves its own topic. Would my handling of this be considered advisable or would something else be a better solution, like a 301? I noted that marking a page hidden excludes it from the find() method, but I simply grabbed the children by their templates. Location 1 - Employee -- John Doe --Jane Doe - Department -- Confused Department --Even More Confused -Year -- 2013 -- 2014
  3. Hello. 1.- I have created: field type: page input type: checkboxes* label field*: title of the page 2.- the structure of this pages are like this: title: maths , category: 10 title: language , category:11 3.- Is it possible to select from the checkboxes dropdown lets say "maths" and write "10" to the DB ?. Thank you.
  4. I'm building a template for a one page website and have run into a small problem with the admin view page links. Because my site is built with content blocks rather than pages there is no header and footer for each block, only the homepage needs to pull in the header and footer for the site. As a result clicking to view a page in the admin shows the page content but with zero styling. This is obviously not ideal for clients so I'd like to find a better solution. Here's a rough idea of the site structure: Home (header & footer) Page 1 Content Block 1 Content Block 2 Page 2 Content Block 3 etc etc My page's use an anchor # for the url eg #contact so Ideally when the user clicks on the page they'd be redirected to that relevant anchor. I know this might be complicated to achieve so all I really need to do is redirect all pages to the homepage (parent). Any idea how I would go about this?
  5. How about a Dutch landing page for ProcessWire, like the German version? Would be kind of cool. Any plans for that? I'm willing to do my part
  6. I have a situation where I need a client to be able to select from a pre-existing group of pages to include in a member's page of a site. For example, consider this structure: home category 1 --cat 1 content 1 --cat 1 content 2 category 2 --cat2 content 1 --cat2 content 2 members --bob --andrew So would it be possible for a client to choose on the page "bob" to show the page "--cat 1 content 1" and any other page in that category and possibly also "--cat 2 content 1"? The member's pages are hidden from the public and require a login to view "bob" and "andrew". Meaning only user "bob" can login to "bob". Would this be possible by using the "pages" field?
  7. My site structure is something like this: parent item 1 --sibling --sibling --sibling --sibling parent item 2 parent item 3 Within parent item 1, I have a menu that navigates to each sibling page like this: <nav> <ul id="pages"> <li><a class="previous" href="<?php echo $page->prev->path; ?>">prev</a></li> <li><a class="next" href="<?php echo $page->next->path; ?>">next</a></li> </ul> </nav> What I would like to do is change my li class when ever a user would get to the first and last sibling page. Does anyone know how I can do that?
  8. Hello everyone, looking at the API docs I just noticed, that in the class Page there is a method isHidden() but no method isPublished(). As I understand it, the proper way to to get the published status would be: $isPublished = !($page->is(Page::statusUnpublished)); Since I'm ok with that, I think it is a little incoherent to have a convenience method for the first but not for the latter. Or did I miss something here? P.S.: What I want to do is to show some infos in the frontend to the content editors like whether the page is hidden or published. Just looked strange in my code so far.
  9. Hi, I have a simple question. I need to do additional logic right after a new page has been created/saved, to be more specific I need to call an API with the value of some of its fields, is this possible in process wire? Thank you!
  10. Hi all, I know that every template has its file associated for rendering the page. But i wonder if i can change file in a page that require a different visualization without create another template. Is that possbile ? ADB
  11. How can I save a processwire page programmatically? That is, create a new page or update an existing page. I tried the code below in a \site\templates\article.php... <?php // CREATE PAGE - howto? // MODIFY PAGE // Page /foo/bar/ exists. $mypage = $wire->pages->get("/foo/bar/"); $mypage->title = "Foo Bar Test Page"; // Change the title. $mypage->save(); print_r($mypage); ?> ... and then called a page using the Article template: Error Exception: Can't save page 0: : Pages of type NullPage are not saveable (in \wire\core\Pages.php line 508) #0 [internal function]: Pages->___save(Object(NullPage)) #1 \wire\core\Wire.php(271): call_user_func_array(Array, Array) #2 \wire\core\Wire.php(229): Wire->runHooks('save', Array) #3 \wire\core\Page.php(869): Wire->__call('save', Array) #4 \wire\core\Page.php(869): Pages->save(Object(NullPage)) #5 \site\templates\article.php(10): Page->save() #6 \wire\core\TemplateFile.php(92): require('...') #7 [internal function]: TemplateFile->___render() #8 \wire\core\Wire.php(271): call_user_func_array(Array, Array) #9 \wire\core\Wire.php(229): Wire->runHooks('render', Array) #10 \wire\modules\PageRender.module(236): Wire->__call('render', Array)
  12. Hi, I have created a post-like structure like this: Page: Posts Page: Category Posts has a field called "category" which is derived from the Category page's children - these children simply have a title field e.g. ("Events", "News" etc) I would like to filter the children of Posts based on this field, something like this: $posts = $pages->get('/posts/')->children("category=events"); However category is a number, in my case Events is the number 1014. Obviously I want to filter by a string instead. How can I do this? Thanks in advance for your help! /////////////////////////////////////// Apologies, after I wrote this I saw a related page at the bottom. Here is the solution for completeness: http://processwire.c...a-selector-tag/ $category = $pages->get("/category/events/"); $posts = $pages->get('/posts/')->children("category=$category"); Nice and easy
  13. Hi, was just wondering what the best way to access a page field in a selector would be? Is ID the only way? So: $geo_students = $pages->find('template=student, subject=1102, sort=title'); Or would there be another way? Thanks.
  14. Hey hello, Basic question: If I have tagged posts, and I would like to list all tags (in this case it's a bunch of associated pages; 'page'-type) that have been used at least once, I'd have to loop throught all posts, right? There is no shortcut? thanks! J
  15. Hey guys am having a bit of trouble linking users to downloadable files (which are being stored in pages). Basically I have extended the user template to include a page field called "files_link" which links to the pages where the files are being displayed. On the user's profile page (front-end) I want to display a little welcome message then the files that they are allowed to access. This is my current code, can anyone help me figure it out? <?php include("./header.inc"); ?> <div id="profile_wrap"> <?php // user is logged in if ($user->isLoggedin()) { ?> <h2>Welcome back <?php echo $user->first_name; ?></h2> <?php $file_pages = $user->files_link; if ($file_pages) { $files = $file_pages->files; ?> <h6>Downloadable files</h6> <ul> <?php foreach ($files as $file) { ?> <li> <a href="<?php echo $file->url; ?>"><?php echo $file->description; ?></a> </li> <?php } ?> </ul> <?php } ?> <?php } else { ?> <h4>Sorry, you do not have access to this page, <a href="./login">please log in</a></h4> <?php } ?> </div> <?php include("./footer.inc"); ?> Thanks
  16. Good evening, I think I may have found a bug in the current release (PW 2.2.5) - I tried to add a new page which is called "0/" (URL "/gallery/0/"). Problem is, I could not save the page - The following error appeared: Error Call to a member function error() on a non-object (line 267 of ...\wire\modules\Process\ProcessPageAdd\ProcessPageAdd.module) I havent looked into it, but taking a wilkd guess I'd say there's a check on an "empty" URL? I created another page called "test" (URL "/gallery/test/") and edited it, after creation - It worked.
  17. Hello, I have the following fields inside one page: title text: introduction text: news text: about me text: contact text: booking background images photos/video music Everytime I open the page index for admin purposes I get the same problem. Everything opens and its quite annoying. How do you change htis? Another question which is very important is that I want to have a detemined order of these fields. How do you do this?
  18. Good evening together, I'm currently working on my second website using PW and coming along very good... But now I face a Problem: I want to use the "Image" Fieldtype to populate a gallery-page (for example "photos/holiday-2012/") - Here I display all the thumbs. When clicking on an image I'd like to open the image on it's own detail-page (with the description underneath etc.) - The URL should look something like "photos/holiday-2012/<image-name>" ... I'm not sure if the pager will do the trick - Is there any easy way to simulate this "detail-pages" since these pages will never exist? Info: The gallery-page will never have any child-pages, so I don't have to worry about naming conflicts. I also searched the forum for "gallery", "virtual", "page" and "pseudo-pages" but could not find someone with a similiar problem
  19. How could i accomplish this? I would like to have in the admin a second page navigation and I would like to able to move some elements from the default page navigation to the other one. The element and their children. Any ideas on this?
×
×
  • Create New...