- Posts: 16
COMMUNITY FORUM
[SOLVED] Frontend editing: remove Published Radio
- jeffrey liu
-
Topic Author
- Offline
- New Member
Less
More
10 years 11 months ago - 10 years 11 months ago #128876
by jeffrey liu
[SOLVED] Frontend editing: remove Published Radio was created by jeffrey liu
Want to remove the Published Radio, because every post supposed to be auto published for everyone.
After removed, the post is NOT published automatically, needs activation by admin.
Any solution? Where is the saving parts function? before save, can assign Published to 1. But dont know where to find that function.
After removed, the post is NOT published automatically, needs activation by admin.
Any solution? Where is the saving parts function? before save, can assign Published to 1. But dont know where to find that function.
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Platinum Member
Less
More
- Posts: 8743
10 years 11 months ago #128877
by Lefteris
Replied by Lefteris on topic Re: Frontend editing: remove Published Radio
Hi. Don't remove it. Set it to a hidden field with the value "1".
Please Log in or Create an account to join the conversation.
- jeffrey liu
-
Topic Author
- Offline
- New Member
Less
More
- Posts: 16
10 years 11 months ago #128878
by jeffrey liu
Where do I hide it? please.
Thanks.
Replied by jeffrey liu on topic Re: Frontend editing: remove Published Radio
Lefteris Kavadas wrote: Hi. Don't remove it. Set it to a hidden field with the value "1".
Where do I hide it? please.
Thanks.
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Platinum Member
Less
More
- Posts: 8743
10 years 11 months ago #128879
by Lefteris
Replied by Lefteris on topic Re: Frontend editing: remove Published Radio
There is no option for that. You need to write code. First read getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates to learn how you can modify K2 HTML output. Then just use :
<input type="hidden" name="published" value="1" />
Please Log in or Create an account to join the conversation.
- jeffrey liu
-
Topic Author
- Offline
- New Member
Less
More
- Posts: 16
10 years 11 months ago #128880
by jeffrey liu
this works. thanks
Replied by jeffrey liu on topic Re: Frontend editing: remove Published Radio
Lefteris Kavadas wrote: There is no option for that. You need to write code. First read getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates to learn how you can modify K2 HTML output. Then just use :
<input type="hidden" name="published" value="1" />
this works. thanks
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Platinum Member
Less
More
- Posts: 8743
10 years 11 months ago #128881
by Lefteris
Replied by Lefteris on topic Re: Frontend editing: remove Published Radio
You are welcome.
Please Log in or Create an account to join the conversation.