Jump to content
pogidude

How to have "Created by User" field

Recommended Posts

I installed the Blog Profile. After creating a blog post, you can go to the Settings tab of that blog post and see a "Created by User" field there. I'm just wondering how that got there?

Coz I'd like to replicate it for another template. When I look at other pages using basic-page template or any other template for that matter, there is no "Created by User" field anywhere.

I'd appreciate it if someone can point me in the right direction.

Thanks!

Share this post


Link to post
Share on other sites

You can enable this option by editing your /site/config.php and setting $config->advanced=true; Next edit the template (Setup > Templates > edit) that you want to be able to change the createdUser. Click on the "system" tab (this is only visible in advanced mode). You'll see checkboxes for various options–check the appropriate one and save. Go back to your /site/config.php and remove the $config->advanced line you added earlier… as you don't usually want advanced mode on (some settings can be dangerous). But you should now have the ability to change the created user for pages using that template. 

  • Like 6

Share this post


Link to post
Share on other sites

ahhhh.. there it is :) thanks Ryan!

@onjegolders - yeah saw $page->createdUser when I was searching in the forums but it wasn't what I was looking for. see the screenshot.. but thanks for the heads up :)

post-1067-0-95974100-1368585204_thumb.pn

Share this post


Link to post
Share on other sites

is there any documentation that I can look in to about the options that show up when you set $config->advanced to true?

Share this post


Link to post
Share on other sites
is there any documentation that I can look in to about the options that show up when you set $config->advanced to true?

Most of these options are meant for ProcessWire (core) development, so they aren't meant to be documented as part of the settings you would typically use in site development. But for people that want to experiment with them, the inline documentation is pretty good. Of course, feel free to post questions here about any of the options too. 

Share this post


Link to post
Share on other sites

Click on the "system" tab (this is only visible in advanced mode).

Has this changed or moved? I enabled Advanced mode and I see the beaker at the bottom of my admin panels labeled "Advanced Mode", but I can't find a "System" tab. I looked at it using both the default and Reno admin themes, and I don't see it.

Sorry if I'm overlooking something obvious.  :undecided:

It works now. What once was lost, now is found.

Share this post


Link to post
Share on other sites

Is there a way to give this permission to non-superusers? I'd like to have a person ranked below a superuser to have this capability as well.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...