Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7020339
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T23:18:22+00:00 2026-05-27T23:18:22+00:00

I am throwing together a quick CRUDify app with Lift, and I need read-only

  • 0

I am throwing together a quick CRUDify app with Lift, and I need read-only access for one of the database tables.

I have researched how to remove that table’s “Create” option from the navigation menu, by setting calcCreateItem to Empty in the mapper object.

However, to make it read-only I ALSO need to remove the “Edit” and “Delete” links on each row of that table’s CRUDify form. I would like to go ahead and remove the “View” link while I’m at it (all of the table’s fields are already displayed on the List form)… but I can live with the “View” links if I have to.

Does anyone know how to make it such that records on a CRUDify “List” form do not contain the “View” / “Edit” / “Delete” links on the far-right of each row?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T23:18:22+00:00Added an answer on May 27, 2026 at 11:18 pm

    Kim’s IfValue solution is probably the most concise though probably not the easiest to understand for a newbie. You could also just override def _showAllTemplate on your entity. It’s defined as below in the Crudify trait, so you could just remove the link TDs. Note that even if the links don’t appear in the template they would still be accessible so you need to block them from the SiteMenu. To do that it’s better if you just override the menu locs rather then calcCreateItem methods.

    override def createMenuLoc: Box[Menu] = Empty
    override def editMenuLoc: Box[Menu] = Empty
    override def viewMenuLoc: Box[Menu] = Empty
    

    def _showAllTemplate =
    <lift:crud.all>
    <table id={showAllId} class={showAllClass}>
      <thead>
        <tr>
          <crud:header_item><th><crud:name/></th></crud:header_item>
          <th>&nbsp;</th>
          <th>&nbsp;</th>
          <th>&nbsp;</th>
        </tr>
      </thead>
      <tbody>
        <crud:row>
          <tr>
            <crud:row_item><td><crud:value/></td></crud:row_item>
            <td><a crud:view_href="">{S.??("View")}</a></td>
            <td><a crud:edit_href="">{S.??("Edit")}</a></td>
            <td><a crud:delete_href="">{S.??("Delete")}</a></td>
          </tr>
        </crud:row>
      </tbody>
      <tfoot>
        <tr>
          <td colspan="3"><crud:prev>{previousWord}</crud:prev></td>
          <td colspan="3"><crud:next>{nextWord}</crud:next></td>
        </tr>
      </tfoot>
    </table>
    

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am throwing together a quick C# win forms app to help resolve a
I've only written a few small php web apps and I'm throwing code together
I've seen a lot of blogs where authors discuss throwing together quick benchmark tests,
We're throwing together a quick project (CRUD forms) and decided to skip view models
I noticed an unusual issue today while throwing together a quick under construction type
I have been throwing stuff together in a small test game over the past
One of our devs through together a banner rotater, and while it works fine
I am new to doing Ajax request and have put together the following Pastie
So I'm throwing together a basic forum as an example and I want to
I am having some issues throwing together a LINQ query that will join a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.