Jump to content

hansv

Members
  • Content Count

    92
  • Joined

  • Last visited

Community Reputation

20 Excellent

About hansv

  • Rank
    Full Member

Profile Information

  • Gender
    Male
  • Location
    Leuven, Belgium

Recent Profile Visitors

1,770 profile views
  1. @adrian thx, I try your suggestion with AdminAction module
  2. Hi Is it possible to import into repeater fields? hansv
  3. @horst This works perfectly in alle pages. many, many thx
  4. The solution is working fine. The code is placed in _main.php and is shown in the header-part of the template. When going to another page, the information is lost and I get the error: Trying to get property 'naam' of non-object in /....../_main.php on line 83. I tried session-variables. The variables are stored, but when I go to another page the sesson-variables are not retrieved. My code $gebruikerarray = json_decode($gebruiker); $session->naam = $gebruikerarray->naam; $session->voornaam = $gebruikerarray->voornaam; $session->klas = $gebruikerarray->groups[0]->name; $session->email = $gebruikerarray->emailadres; $session->email_coaccount1 = $gebruikerarray->email_coaccount1; $session->email_coaccount2 = $gebruikerarray->email_coaccount2; echo 'Bestelling voor ' . $session->naam . ' ' . $session->voornaam . ' - ' . $session->klas . '<br>'; echo 'Email: ' . $session->email . '<br>'; if ($session->email_coaccount2 !== '' ) { echo 'Email co-account 1: ' . $session->email_coaccount1 . '<br>'; } if ($session->email_coaccount2 !== '' ) { echo 'Email co-account 2: ' . $session->email_coaccount2 . '<br>'; }
  5. @teppo@horst thx for your quick, very usefull, respons The combination of $input->get and allow url-segments in the home page did the trick. I was to much focused on the _main.php, but the real page was home.php. With the url-segments allowed in the home template, the magic of processwire was there. if(($input->get->u) !== ''){ $gebruikersnaam = $input->get->text('u');
  6. Hi everybody I want to catch a variable from outside processwire into _main.php if(isset($_GET['u']) && $_GET['u'] !== ''){ $gebruikersnaam = $_GET['u']; ... ... This is working fine in a php file in a non processwire environment. In a processwire environment, I get the variable when I refer to /site/templates/_main.php but a great part of my template-code is not shown. From outside processwire I refer to mydomain/index.php. If I place $gebruikersnaam = $_GET['u']; in index.php, how can I pass through my variable to _main.php? Or is there an other solution? thx hansv
  7. @adrian many thx A simple table check was enough. The cause of this is still a mistery, but I'm glad the site is working again. hansv
  8. I got this morning an error on all pages that uses the hanna-code module on site that is already a few years online. I use the latest pw dev Als guest you see this error on www.orgelpijpjes.be Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Error has been logged. As administrator Error: Exception: SQLSTATE[HY000]: General error: 1036 Table 'hanna_code' is read only (in /customers/9/7/b/orgelpijpjes.be/httpd.www/site/modules/TextformatterHannaCode/TextformatterHannaCode.module line 305) #0 /customers/9/7/b/orgelpijpjes.be/httpd.www/site/modules/TextformatterHannaCode/TextformatterHannaCode.module(305): PDOStatement->execute() #1 /customers/9/7/b/orgelpijpjes.be/httpd.www/site/modules/TextformatterHannaCode/TextformatterHannaCode.module(198): TextformatterHannaCode->getReplacement('inthepicture', Array, true) #2 /customers/9/7/b/orgelpijpjes.be/httpd.www/wire/modules/Fieldtype/FieldtypeText.module(94): TextformatterHannaCode->formatValue(Object(ProcessWire\Page), Object(ProcessWire\Field), '<p>[[inthepictu...') #3 /customers/9/7/b/orgelpijpjes.be/httpd.www/wire/modules/Fieldtype/FieldtypeTextarea.module(119): ProcessWire\FieldtypeText->___formatValue(Object(ProcessWire\Page), Object(ProcessWire\Field) This error message was shown because: you are logged in as a Superuser. Error has been logged Has anyone suggestions how to solve this? thx
  9. PW 3.0.52 with uikit site profile After installing the Core-module Language Support I get the following error Session: Module reported error during install (LanguageSupport): SQLSTATE[HY000]: General error: 1214 The used table type doesn't support FULLTEXT indexes Any idea how this error can be avoided?
  10. On transferring my database online, I get the following error when I try to enter my templates, fields, formbuilder form. Error: Exception: SQLSTATE[42000]: Syntax error or access violation: 1104 The SELECT would examine more than MAX_JOIN_SIZE rows; check your WHERE and use SET SQL_BIG_SELECTS=1 or SET MAX_JOIN_SIZE=# if the SELECT is okay ( .... /wire/core/PageFinder.php line 410) Any suggestions how to fix? Many thx
  11. I don't know is this topic is still alive? Just put this line in the header of _main.php, close your browser and restart or refresh (CTRL-F5) a few times and the favicon appears. <link rel="icon" href="<?=urls()->templates?>styles/images/favicon.ico">
  12. hansv

    Scrolling sidebar

    @Robin S Thx for showing me the right direction, I used http://projects.jga.me/toc/
  13. hansv

    Scrolling sidebar

    Maybe it's better to visualize In the body-field of a page there is content. 1 Lorem with H3-tag Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit sapien, pulvinar sit amet mi nec, consequat rhoncus nunc. Cras est urna, finibus ut elementum elementum, tincidunt id enim. 1.1 Lorem with H2-tag Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit sapien, pulvinar sit amet mi nec, consequat rhoncus nunc. Cras est urna, finibus ut elementum elementum, tincidunt id enim. 1.2 Lorem with H2-tag Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit sapien, pulvinar sit amet mi nec, consequat rhoncus nunc. Cras est urna, finibus ut elementum elementum, tincidunt id enim. 2 Lorem with H3-tag Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit sapien, pulvinar sit amet mi nec, consequat rhoncus nunc. Cras est urna, finibus ut elementum elementum, tincidunt id enim. 3 Lorem with H3-tag Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit sapien, pulvinar sit amet mi nec, consequat rhoncus nunc. Cras est urna, finibus ut elementum elementum, tincidunt id enim. In e.g. a sidebar (see below), the headers (h2, h3, may also h4) are generated, and when scrolling down the page-content (body-field), you scroll down to the headers in the sidebar. The tags are always, h2, h3 and h4 1 Lorem with H3-tag 1.1 Lorem with H3-tag 1.2 Lorem with H3-tag 2 Lorem with H3-tag 3 Lorem with H3-tag I try to find a way to generate the headers of the page-body-field and show them in a side-bar-panel. This is PW-related, the scrolling down part is for the front-end framework, e.g. Uikit. In the cheatsheet of PW I find way's to refer to page-fields (title, summary, body, ..) but I try to find a way to recognize specific html-content (headers, h2 -> h4) within the body-field.
  14. hansv

    Scrolling sidebar

    Thx Kongondo & fbg13 for your replies. I think this is a pure PW-question, the integration of uikit is a side-issue. I can rephrase the question in different ways how can I make an index of page-content? how can I find all subtitles and paragraph titles in a page and show them together as a summary
  15. hansv

    Scrolling sidebar

    Ryan has opened my eyes with his skyscrapers2-demo. Uikit is really a fantastic frontend-framework. My question is about scrolling uikit-side-nav and the pw-code to use for the content. Is it possible to realize a scrolling nav-side-bar as the uikit-layout-example: https://getuikit.com/docs/layouts_documentation.html ? The scrolling-bar should show the headers for example h3 en h2 of the body-part of the page When scrolling down the page, the headers in the sidebar, e.g. h3 h2, show where you are in the page. Can anyone show me the way to the code to trigger e.g. the h3 and h2 headers?
×
×
  • Create New...