-
Content Count
67 -
Joined
-
Last visited
Community Reputation
15 GoodAbout Peter Troeger
-
Rank
Full Member
Recent Profile Visitors
-
Hi π I was wondering whether it is possible to change displayed name of the 'name'-field that is used as login-name for users? I'm using an ID as the login-name and would like to have it displayed as 'ID-db' instead of 'name' in the dropdowns etc. When opening the 'users'-View, can I change the default columns that are displayed? atm it uses fields that are not very helpful, and changing them every time I open it (Access->Users) is very tedious. Thank you, any help is appreciated! π - Peter
-
@ZekaThank you very much, that solved it! π
- 4 replies
-
- 1
-
-
- pagination
- multiple
-
(and 2 more)
Tagged with:
-
Well, I have this in the sidebar: <?php $aktuelles = $pages->find('template=blog-post, limit=4'); foreach($aktuelles as $aktuell) { $aktuell_body = $aktuell->get('summary|body'); $aktuell_title = $aktuell->title; $aktuell_url = $aktuell->url; $cat = $pages->get('/'.$pages->get('id='.$aktuell->categories[0])->name.'/'); echo '<div> <div class="post"> <p class="date">'.$aktuell_title.'</p> <div class="text">'; $aktuell_body = strip_tags($aktuell_body, '<a><strong><em><i>'); echo truncate_words($aktuell_body, 22); echo '</div> </div>'; if($aktuell->categories!='') echo '<a href="'.$cat->url.'">'.__('Weitere Informationen unter ').$cat->title.'</a>'; echo '</div>'; } ?> and this is the main content with the pagination: <?php $children = $page->children('limit=3'); foreach($children as $child) { $title = $child->title; $url = $child->url; echo '<h2><a href="'.$url.'">'.$title.'</a></h2>'; $grandchildren = $child->children(); foreach($grandchildren as $grandchild) { $grandchild_title = $grandchild->title; $grandchild_body = $grandchild->body; $grandchild_date = $grandchild->date_freeform; echo '<section class="mitteilung veranstaltung"> <h3>'.$grandchild_title.'</h3> <p class="date"><em>'.$grandchild_date.'</em></p> <p>'.$grandchild_body.'</p> </section>'; } } ?> <?php echo $children->renderPager(); ?>
- 4 replies
-
- pagination
- multiple
-
(and 2 more)
Tagged with:
-
Hello Community π Has anyone ever tried having multiple elements on one page that get their info with $pages->find('selector, limit=n') and tried using pagination on one of these elements without effecting the other? I have a slider on a page where I display content with pagination. But when I go to page two, the slider content also goes to page two, which I don't want it to do π Any tips are greatly appreciated! Thanks! -Peter
- 4 replies
-
- pagination
- multiple
-
(and 2 more)
Tagged with:
-
[SOLVED - kind of] Pagintion Link redirects
Peter Troeger replied to Peter Troeger's topic in General Support
Couldn't find out what the problem was, so I don't use uikit anymore π -
[SOLVED - kind of] Pagintion Link redirects
Peter Troeger replied to Peter Troeger's topic in General Support
ok, I also removed the start=0, and now it works. Now I only have to find out, why it doesn't work when I use ukBlogPosts(pages()->get('/aktuelles/')->children, 1 ) and $children->renderPager(); on the same page π -
[SOLVED - kind of] Pagintion Link redirects
Peter Troeger replied to Peter Troeger's topic in General Support
When I keep the uikit file, but remove the usage of uikit (I've had two instances af ukBlogPosts(pages()->get('/aktuelles/')->children, 1) included in the page), the redirect doesn't happen anymore either. The content still doesn't change π -
[SOLVED - kind of] Pagintion Link redirects
Peter Troeger replied to Peter Troeger's topic in General Support
I found out that, if I remove uikit from my site, the page is not redirected, but stays on ' .parent-page/page2/ '. It doesn't show the content from page 2 though. It still shows page 1 content. This is the complete template page. <?php namespace ProcessWire; ?> <div id="body_text"> <?php $children = $page->children('start=0, limit=2'); foreach($children as $child) { $title = $child->title; $body = $child->body; $file = $child->file; $file_url = $file['url']; $image = $child->single_images; if ($file=='') $file='#'; ?> <section class="mitteilung"> <?php echo '<h2><a href="'.$file_url.'">'.$child->title.'</a></h2> <p>'.$body.'</p></section>'; } ?> <?php echo $children->renderPager(); ?> </div> In the init file I add the uikit file. -
[SOLVED - kind of] Pagintion Link redirects
Peter Troeger replied to Peter Troeger's topic in General Support
Thanks for your reply! I have 32 child pages, and it generates the navigation correctly with multiple pages. I added a start, but that didn't change it. URL settings are set to blank for the default and pt for the second language. I tried changing the default to de, just in case but the problem still exists. debug is already enabled. No errors are logged. I only have menubuilder and the login/register plugin for sitewide modules installed. Could it have anything to do with PagePathHistory? -
Hello π I have set up pagination on a mulitlanguage site. I've done this before, but this time I have a problem I can't solve. Pagination is activated on 'parent-template' and 'child-template' just to be sure π This is my code: $children = $page->children('limit=1'); foreach($children as $child) { $title = $child->title; echo $title; } echo $children->renderPager(); The navigation is output correctly and the link look correct as well 'parent-page/page2/'. But when I click the link, the site seems to redirect back to 'parent-page/ Any help would be greatly appreciated π - Peter
-
Help with update from 2.7.2 to 3.0.123
Peter Troeger replied to Peter Troeger's topic in General Support
Thank you for your help. That was not the problem, but it pointed me in the right direction. The problem was my stupidity π I hat $config->sessionAllow = true; set in config. And while it didn't make a problem in 2.6., but it did make on locally in the upgraded version. π -
Help with update from 2.7.2 to 3.0.123
Peter Troeger replied to Peter Troeger's topic in General Support
Thanks for your ideas. I tried it after deleting sessions and file compiler, but I still have the same problem. User salt is identical on both sites. -
Help with update from 2.7.2 to 3.0.123
Peter Troeger replied to Peter Troeger's topic in General Support
I started anew, and the batch processor module was a problem. But now my login isn't working. I log in, in my log files I see a successful login, but The login page just reloads without a message. When entering wrong input details, I get the correct error message. Any ideas? π Thank you! Peter -
Hello π After upgrading to 3.0.123 from 2.7.2 (I replaced the wire folder, index.php and .htaccess I get this error: Fatal error: Uncaught Error: Call to a member function get() on null in site/assets/cache/FileCompiler/site/modules/ProcessBatcher/ProcessBatcher.module:58 Stack trace: #0 [internal function]: ProcessBatcher::getModuleInfo() #1 dev/wire/core/Modules.php(2568): call_user_func(Array) #2 wire/core/Modules.php(2844): ProcessWire\Modules->getModuleInfoInternal('ProcessBatcher', '\\') #3 dev/wire/core/Modules.php(1036): ProcessWire\Modules->getModuleInfo('ProcessBatcher') #4 dev/wire/core/Modules.php(848): ProcessWire\Modules->loadModule('...', '...', Array, Array) #5 wire/core/Modules.php(369): ProcessWire\Modules->load('...') #6 wire/core/ProcessWire.php(395): ProcessWire\Modules->init() #7 wire in site/assets/cache/FileCompiler/site/modules/ProcessBatcher/ProcessBatcher.module on line 58 When I disable template and file compilation, I get Fatal Error: Class 'Textformatter' not found (line 17 of site/modules/TextformatterMakeLinks.module) I added this to all my template files <?php namespace ProcessWire; And am not sure where to go from here π Any help is greatly appreciated! Thanks! Peter
-
passing variable to hook not working with _GET Variables?
Peter Troeger replied to Peter Troeger's topic in API & Templates
I'll have to try next week. Thanks for the help so far. I'll be back! π