×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Start and End publishing ACL

Start and End publishing ACL 9 years 5 months ago #31253

  • Peter Ashford
  • Peter Ashford's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 9
  • Thank you received: 3
Allow permissions/ACL to give the rights to other groups (i.e. registered) users to set a start and end date when submitting hotsports from the front end. Currently it looks like only admins can do this.

thanks

Pete
The following user(s) said Thank You: tchustzphil

Start and End publishing ACL 9 years 5 months ago #31264

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Online
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey Peter,
I see this check in the code
<?php if ($this->user->authorise('core.edit.state', 'com_hotspots')) : ?>

So, if you grant the edit state permission to the group you want to modify the publish_up and down fields, then they should see it :)

Cheers,
Daniel
The following user(s) said Thank You: tchustzphil

Start and End publishing ACL 9 years 5 months ago #31268

  • Peter Ashford
  • Peter Ashford's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 9
  • Thank you received: 3
Cheers mate, I will try later.
The following user(s) said Thank You: tchustzphil

Start and End publishing ACL 9 years 5 months ago #31273

  • Peter Ashford
  • Peter Ashford's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 9
  • Thank you received: 3
Hi Daniel,

That kind of worked. It does now give me the start and end dates, but it also shows the Published, Access and Language fields. I couldn't remove those extra fields using CSS, so I did an over ride on the form.php and removed the form fields. That looked fine until I submitted the hotspot. It seems that the default option is to set the hotspot to unpublished, which I don't want. Do you have any other ideas on how I can force it to be published each time?

thanks Pete
The following user(s) said Thank You: tchustzphil

Start and End publishing ACL 9 years 5 months ago #31282

  • Peter Ashford
  • Peter Ashford's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 9
  • Thank you received: 3
any ideas on this one? cheers Pete

Start and End publishing ACL 9 years 5 months ago #31286

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Online
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
You can add a hidden published field on the page. But however if you remove the published field, then the system is looking for the published setting in the option. There is an option to set Hotspots to be auto approved - if it is set to no, then that is why your hotspots are not published.

Regards,
Daniel

Start and End publishing ACL 9 years 5 months ago #31288

  • Peter Ashford
  • Peter Ashford's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 9
  • Thank you received: 3
Hi Daniel - It is set to auto approve in the backend - not something I have changed since trying this..... I'll try it again later on my dev site to be 100% sure . cheers pete
  • Page:
  • 1
Time to create page: 0.162 seconds