Keyword

Frontend editing / Hiding a row

  • Victoria
  • Victoria's Avatar Topic Author
  • Offline
  • Junior Member
More
9 years 7 months ago #148701 by Victoria
Frontend editing / Hiding a row was created by Victoria
Hello,

I wonder if I can hide a row "title alias (URL)" and it's input box at the frontediting window using CSS ???

Thank you,
Victoria

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 7 months ago #148703 by Krikor Boghossian
Replied by Krikor Boghossian on topic Frontend editing / Hiding a row
Yes you can.

You need to hide the .k2TitleAliasBox and label[for="alias"] elements.
Eg:
.k2TitleAliasBox, label[for="alias"]  { display: none; }

Depending on the template you might need to add !important or some parent classes.

Please Log in or Create an account to join the conversation.

  • Victoria
  • Victoria's Avatar Topic Author
  • Offline
  • Junior Member
More
9 years 7 months ago #148718 by Victoria
Replied by Victoria on topic Frontend editing / Hiding a row
Thank you! Works!

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 7 months ago #148724 by Krikor Boghossian
Replied by Krikor Boghossian on topic Frontend editing / Hiding a row
You 're welcome Victoria :)

Please Log in or Create an account to join the conversation.

  • Victoria
  • Victoria's Avatar Topic Author
  • Offline
  • Junior Member
More
9 years 7 months ago #148735 by Victoria
Replied by Victoria on topic Frontend editing / Hiding a row
Krikor,

One more question, I hid the 'Alias' and 'Featured' rows successfully but can't do with the 'Published'. According to the firebug, 'Published' has a slightly different code; instead of <label for="published">Published</label>, it is <label> Published</label>.
I tried few different things but no luck yet.

Thanks,
Victoria

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 7 months ago #148760 by Krikor Boghossian
Replied by Krikor Boghossian on topic Frontend editing / Hiding a row
I think you should try a different approach.
getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates

You can override the itemform.php file which is used in the form and hide (NOT remove) the elements you want.

Please Log in or Create an account to join the conversation.

  • Victoria
  • Victoria's Avatar Topic Author
  • Offline
  • Junior Member
More
9 years 7 months ago #148823 by Victoria
Replied by Victoria on topic Frontend editing / Hiding a row
Ok, thanks.

Please Log in or Create an account to join the conversation.

More
9 years 7 months ago #148827 by Vlad
Replied by Vlad on topic Frontend editing / Hiding a row
Hi,

How to hide the elements? Can you please provide a sample code for that?

Thanks

Krikor wrote: I think you should try a different approach.
getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates

You can override the itemform.php file which is used in the form and hide (NOT remove) the elements you want.

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 7 months ago #148850 by Krikor Boghossian
Replied by Krikor Boghossian on topic Frontend editing / Hiding a row
You can use inline css (style="display: none;") or css clip which is more accessible: adaptivethemes.com/using-css-clip-as-an-accessible-method-of-hiding-content

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum