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 7792973
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T22:20:23+00:00 2026-06-01T22:20:23+00:00

in the objects list generated with the admin generator, the batch Action are shown

  • 0

in the objects list generated with the admin generator, the batch Action are shown in a select with a submit button.
I want to transform it and get only link (for example i have the action delete and i want to have a link to delete instead of choosingthe action and than click on the button.)

i have the _list_batch_actions.php file but i could’nt see how to get the href for the tag:

    <li class="sf_admin_batch_actions_choice">
    <a href="<?php // url_for('@route')?>"> test</a> // this is what i added but not woorking
  <select name="batch_action">
    <option value=""><?php echo __('Choose an action', array(), 'sf_admin') ?></option>
    <option value="batchDelete"><?php echo __('Delete', array(), 'sf_admin') ?></option>
  </select>
  <?php $form = new BaseForm(); if ($form->isCSRFProtected()): ?>
    <input type="hidden" name="<?php echo $form->getCSRFFieldName() ?>" value="<?php echo $form->getCSRFToken() ?>" />
  <?php endif; ?>
  <input type="submit" value="<?php echo __('go', array(), 'sf_admin') ?>" />
</li>

Any idea on how i can use it ?

  • 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-06-01T22:20:24+00:00Added an answer on June 1, 2026 at 10:20 pm

    Solution one:

    The batch actions are submitted by form by default. You can rewrite the template to put links instead of a form.

    Check your auto generated controler in the cache
    (you need before to see your admin page in order to generate the cache).

    apps/backend/dev/modules/autoYourModule/actions/action.class.php
    

    You will find a function executeBatch().

    You can copy this function and put it in your admin module controler and then modify its behaviour in order to do what you need.

    Solution two:

    Use javascript to hide your form and put a link which will select the delete action in your select box, the submit the form using javascript.

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

Sidebar

Related Questions

I have List objects which are shown like this: www.mysite.com/lists/123 Where 123 is the
I have one custom action (add) and two custom objects (favorites list) and (tv
I get some Json response with a list of objects. onComplete: function (id, fileName,
A Party can have one or more Contact objects. I want to select all
Im using the doctrine admin generator, and I want to not allow the user
I have 2 List objects: List<int> lst1 = new List<int>(); List<int> lst2 = new
I have two objects List<Report> List<Newsletter> I need certain properties like Id Date Status
I have a list of custom objects List and I would like to update
I have two list of different objects : List<Report> List<Newsletter> each having a 'created
Can I sort a list of objects by a property of an associated object?

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.