blackeye1987
Members-
Posts
37 -
Joined
-
Last visited
About blackeye1987
- Birthday 05/12/1987
Contact Methods
-
ICQ
178710571
-
Yahoo
arthur.kielbasa
-
Skype
arthur.kielbasa
Profile Information
-
Gender
Male
-
Location
Bottrop, Germany
-
Interests
Programming, Gaming, Martial Arts, Rock Music, Photoediting & Shooting,
blackeye1987's Achievements
-
@LostKobrakai - this would miss the feel of having it in the settings tab, besides yes i could make a custom settingsTab, but this would also miss my approach. i am not looking for a quick solution more for a clean or even expandable solution. using @BitPoet's approach , i am more flexible and able to communicate with my team and the customer. having hidden fields through content tabs might give an irritational feel when working with customers
-
Hi Everyone, i couldn't find a way to put a custom field into the settings tab i'd need that field only as a superuser, to hide pages from my own search engine. best would be a custom status, but a checkbox in the settingstab would be the smoothest solution i wasn't able to find anything like that in the forum so far. feel free to move the thread, if i am in the wrong subforum
-
blackeye1987 started following Custom Field in Page SettingsTab
-
hey there great module, but i have kind of an issue with it: on creating a repeaterMatrix element with an icon-picker, i get a dropdown (create.PNG) after closing the element and reopening it (with the little arrow on the right side) i get the icon picker. (closeReopen.PNG) it seems so random, that i can't find an explanation for it. ever got this issue ?
-
Hi, does anyone encounter the Same bug ? 1.i have multiple pages in PW 2.5.29 2.and some older ones i need to Upgrade from 2.5.21 in Case 1 as a Superuser i cannot change stuff in my Profile (e-mail / password / language do work, some custom fields dont (also roles doesn't)) in Case 2 as a Superuser i can change everything without a sweat. Greetings
-
well i found the problem... so as the child generater does everything right. i was looking on the wrong spot. the customer comes from a sso page linked to me. there i am creating on the fly his institute (A) if not already in the system. this is the what happens in order. 1 customer clicks link 2. customer sends data with his post to our sso login 3. creating the institute on the fly 4. child generater creates all subpages (2 tabs a configuration and some other stuff) 4.1 configuration gets created 4.2 tabs get created (the konfiguration at this point does not have the reference which the institute B is! so at this point the tabs get created without the correct info (due to my superb skillz i already cought it if no config or institute found make them unpublished) 5. configuration gets filled with the infos needed like who is my institute B 6. login i added between 5 and 6 1 step //find all due they might be unpublished foreach($b->find('template=tab,include=all') as $t){ $t->setOutputFormatting(false); $t->save(); } now everything works as intended. thanks for everyone who read my code and didn't told me i am a crazy scientist good day everyone
-
i found a possibility.. which has nothing to do with my code.. in some way.. if i know more i will tell you in this post. tab has a lower id in the child generator then the konfiguration, so there is an possibility that the tabs are getting created before the configuration so obviously the tab cannot find the config.
-
well the code is very specific and throws more questions then it could provide answers. but there you go: i create the pages with my child generater public function createChildren($event){ $page = $event->arguments[0]; $query = $this->db->query("SELECT * FROM ".strtolower($this->className).";"); //foreach child creater object foreach($query as $cco){ $t = $cco['parent_template']; $ct = $cco['child_template']; $cn = $cco['child_name']; $ci = (int) $cco['child_numbers']; $c = ''; //will be used as new Page if($t == $page->template->id){ if($ci > 0){ for($i=1;$i <= $ci;$i++){ $c = new Page(); $c->template = $ct; $c->parent = $page; // set the parent //if only 1 entry do not add the 1 if($ci == 1){ $c->name = $cn; // give it a name used in the url for the page $c->title = $cn; // give it a name used in the url for the page } else { $c->name = $cn.$i; // give it a name used in the url for the page $c->title = $cn.$i; // give it a name used in the url for the page } $c->title = $c->name; $c->tab_position = $i; $c->outputFormatting(false); $c->save(); } } } } } you have to configure it in processwire. basically. i set a template. when this template is set -> create x pages with template n if($page->template == 'tab'){ $parent = $page->parent('include=all,template=a_temp'); if($parent->id > 0){ if($parent->a_conf->id > 0){ foreach($parent->a_conf->b_affinity->b_conf->tab_add as $ta){ if( ($ta->tab_position == 5 && $page->tab_position == 1) || ($ta->tab_position == 6 && $page->tab_position == 2) ){ if($page->is(Page::statusUnpublished)){ $page->removeStatus(Page::statusUnpublished); $page->save(); } return; } } } if(!$page->is(Page::statusUnpublished)){ $page->status = Page::statusUnpublished; $page->setOutputFormatting(false); $page->save(); } return; } } return; this is where "the magic" happens. i have an institute(a) which has tabs. this institute(a) is a subinstitute of another institute(b). b is allowed to tell a if they can publish tab 5 and 6 of their institute. content from b is always provided b can only add content. the problem is: institute a gets created and linked with instutite b institute b is already configured. so institute a gets its config basically preset. on creating institute a (no matter what config institute b has) tab 1 and 2 (on a side) are not published even if institude b allows them to use them (institute b has them on tab 5 and 6) like i said.. i think this whole thing is more confusing then my starting question.
-
Hi, i got a weird problem and cannot find any answer. i have a module that creates pages when a certain template is set (posted it somewhere in the forum) and i have another module that if a page is saved it checks another page settings if the page is allowed to be published or unpublished. (this happens on page save and worked the last few weeks) now it seems like when the subpage gets created it is always unpublished. after saving it again, the original intended script works as programmed. so as you might know, i wonder if, there has been a change between creating a page and just saving / updating it. if there hasn't been any changes to this the problem might be somewhere else, but tbh i know that there is no other modules used / installed by me which are changing the status here.
-
i made a workaround (pretty dirty) for the same topic. i set a value i want to sort by. 0 config 1 preview 2 statistic 3 formular 4 (here was my problem) i have 6 tabs. so i gave the tabs a value 1 - 6 and added that value to my sort mechanic. i have a litle hook after save to set the position again. $page->setOutputFormatting(false); $page->ssort = 4 + $page->tab_position; $page->save();
-
Translatable File and Image Descriptions
blackeye1987 replied to Robert Zelník's topic in Multi-Language Support
hey hope i am not too late.. is there any possibility that following error will be available for translation ? in wire\modules\inputfield\inputfieldfile\inputfieldfile.js $fileList.append(errorItem(files[i].name, extension + ' is a invalid file extension, please use one of: ' + extensions)); -
Creating User with already hashed password
blackeye1987 replied to blackeye1987's topic in API & Templates
jeah i thought about this aswell. so far they are undecided. i am quiet sure they will not handle any real passwords to me. i will keep the double hash. thanks for the help. take my likes and feel free to close the thread- 5 replies
-
- usercreation
- api
-
(and 2 more)
Tagged with:
-
Creating User with already hashed password
blackeye1987 replied to blackeye1987's topic in API & Templates
well somewhat yes. i get a user object via xml <name>username</name> <password>password</password> and the password i recieve is already hashed in sha1 so it would be good if i wouldn't need to write an extra login for these people.- 5 replies
-
- usercreation
- api
-
(and 2 more)
Tagged with:
-
Hi everyone, i want to create a user on the fly with sso, i recieve the password already hashed and want to save the user without having the password hashed by processwire afterwards. so far i could leave it rehashed in the database as long as the customer does not want to allow the users to use the direct loginmask. but if that changes, i would be in trouble. so is there a processwire way to do this or do i have to put the user in manually. i know we will have someone intelligent helping me out here
- 5 replies
-
- usercreation
- api
-
(and 2 more)
Tagged with:
-
wire('config')->urls->admin should also do the trick.
-
BugFix for /backend/page/?id=n&open=childofn
blackeye1987 replied to blackeye1987's topic in Wishlist & Roadmap
with a hook for example. i used it for restricting users to certain pages. like he is only allowed to join on news. so he gets index/?id={id of news} so he will only see news and all subpages of news but nothing else. you can find the module somewhere in the forum