GithubHelp home page GithubHelp logo

bern-lefebvre / title_links Goto Github PK

View Code? Open in Web Editor NEW

This project forked from techmaxsolucoes/title_links

0.0 1.0 0.0 57 KB

Frappe Hack: Links using related title, instead of name

License: Other

Python 41.60% HTML 7.47% JavaScript 50.93%

title_links's Introduction

Title Links

In some cases, we need hide the standard name of a DocType in favor of another value in the doctype, and get it simple to the end user.

Title Links, do exactly it, it replace the value displayed in the Links and Dynamic Links fields, to the value of the title field, defined in your DocTypes.

When the title is not present, we will ensure the same behavior of the original widgets of frappe, displaying the name.

That is how the normal behavior of Link Widget looks like:

schermata 2017-02-08 alle 13 31 23

This is how the related record looks like in frappe

schermata 2017-02-08 alle 12 49 27

Frappe, already replace the title value in the visualization area of the Form, and show the original name, in the right side of the form, as a small text. Why we can't do the same to the links?

To me it's by designe is not enought, so I decided to hack frappe.

After install this app, and configure the DocTypes that you need to change to title, like the below image,

schermata 2017-02-08 alle 12 34 19

Your links will look like

schermata 2017-02-08 alle 17 00 56

A selected value will look like

schermata-2017-02-08-alle-18 46 33

Don't worry with Link Formatters, title links already define it to you!

schermata-2017-02-08-alle-18 31 28

License

MIT

title_links's People

Contributors

maxmorais avatar

Watchers

Bernard Lefebvre avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.