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 need to find a good way to check for the status of a page, whether it is unpublished or not. If I do echo $page->status I get these values: published: 1 unpublished: 2049 hidden and published: 1025 hidden and unpublished: 3073 My page is hidden by default. So to check for unpublished state I do if ($page->status == 3073) which is working fine. Only thing that worries me is that I know nothing about these status codes and whether it will always be 3073 for hidden and unpublished. So if you know a more generic way of doing this, please share it here. Thank you. Cheers gerhard
  2. I am new to ProcessWire of course, but loving every minute of developing with it. What I am looking to do is to make a field that can list all children of a page. My page would be "callouts" and the children would be "callouts". I would like to list these in a field in another pages template that lists the "callouts" so that the user can pick a number (lets say 3) of them and they will then show on that page. It is preferred for each page to have a unique set of callouts. The alternative, I supposed, is to return only the latest-x callouts on each page, but this negates any amount of customization in regard to these callouts. Is this possible? Can anyone send me in the right direction?
  3. Hi there, First of all, I am sorry for the spam of small questions, but as they are all very simple and fit for my problems, they can as well fit for someone else's problems too. I am testing around the $page->children function and I wanted to find all the children inside the children of the page's first child. It is a bit complicated to explain, but I'll illustrate the situation: first level - > second level - - - > third level - - - - - - > fourth level - - - > third level - - - - - - > fourth level - - - - - - > fourth level - - - > third level If we read this list as a page tree, I want to find the url of each "fourth level" page. I have tried the most logical yet with no success: <?php foreach( $page->child->children->children as $children) { ?> <h1><?php echo $children->url ?></h1> <?php } ?> What am I doing wrong? In JQuery terms I could navigate through my levels with the $(this).parents()[5] function, but Processwire seems to lack this capability. Thanks in advance
  4. Hi there, I am struggling with a very simple variable. I'm using the following function to get the url of a certain child: <?php echo $page->find("projects")->url ?> But it returns an error: Error: Exception: Unknown Selector operator: '' -- was your selector value properly escaped? (in /Applications/XAMPP/xamppfiles/htdocs/cms/wire/core/Selectors.php line 165) #0 /Applications/XAMPP/xamppfiles/htdocs/cms/wire/core/Selectors.php(190): Selectors->create('projects', '', '') #1 /Applications/XAMPP/xamppfiles/htdocs/cms/wire/core/Selectors.php(63): Selectors->extractString('has_parent=1, p...') #2 /Applications/XAMPP/xamppfiles/htdocs/cms/wire/core/Pages.php(143): Selectors->__construct('has_parent=1, p...') #3 [internal function]: Pages->___find('has_parent=1, p...', Array) #4 /Applications/XAMPP/xamppfiles/htdocs/cms/wire/core/Wire.php(271): call_user_func_array(Array, Array) #5 /Applications/XAMPP/xamppfiles/htdocs/cms/wire/core/Wire.php(229): Wire->runHooks('find', Array) #6 /Applications/XAMPP/xamppfiles/htdocs/cms/wire/core/Page.php(786): Wire->__call('find', Array) #7 /Applications/XAMPP/xamppfiles/htdocs/cms/wire/core/Page.php(786): Pages->find('has_parent=1, p...', Array) #8 /Applications/XAMPP/xa This error message was shown because you are logged in as a Superuser. Error has been logged. The page called 'projects' exists, what could be the problem? Thanks in advance
  5. Hi there, I have a single page website. This single page website has a section that includes posts that have their own content already displayed on the page. What do you recommend, should it be best to maintain the repeater structure or should I make this section based on pages? (you can think of this like a blog, but the content is already within the main page, thus making it a single-page website) Thanks in advance
  6. 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
  7. 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
  8. 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.
  9. 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?
  10. 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
  11. 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?
  12. 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.
  13. 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
  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. 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.
  16. 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
  17. 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.
  18. 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?
  19. 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
×
×
  • Create New...