Link System In Description

I am making Post App. And User also upload there post (Description and Image’s)
See this image… :point_down::point_down::point_down:

Description showing in lable componate. And if have a link in description, so I want to set this link clickable only for specific Text (example link :https//Google.com)

Like Facebook Descriptions System … :point_down::point_down::point_down:

Hope if you understand…
Please Guide me…

when you clicked that label did it open in external?

you need to set it too… but using Web viewer is more easier.

HOW TO USE

*First make the description in a formatted HTML style.

  • Secondly set Web viewer to use external browser

  • Then attach that text(HTML format) to Web view socket for load HTML.

  • Click any link from that HTML and see its result.

If you think label is best… then go ahead​:v:

/Big9ja

1 Like

Ok… Thanks a lot for the guidance…

Can this possible…?

I want the text to be in HTML format when the user posts the description. This means that if there is a link in the text, it should be automatically detected and converted to html format and after store html text in fierbase.

And this html file should be shown in Web viewer … So that if there is a link in the description, it will be clickable

If HTML is not working properly then you can try this:

You can use a seperate label just for link and show it just below the description.

Set it as clickable and text colour to blue or pink to make it looks like a link.

This label can be optional, if user has a link then he can provide it separately and you have to make a condition if link label text is not empty then make it visible otherwise keep it invisible.

You can also use activity starter but that would be complicated

For underline property, there is an extension

1 Like

@The_K_Studio

That’s great idea …:clap::clap:

But i want to show description in a one label, not more…

Because, if in a description have a link in a center then, so i want show there… Not bottom…
Like a Facebook description system…

Can this possible in kodular…?

@Chirubot

Thanks suggesting…

Great Extension for lable propertys… :pray::pray:

You can get the text from the list, and set the activity starter to that text and it would open in an external browser

@Chirubot

Yes… Right, but there are a some problem…

Label will be completely clickable. I don’t want this

I want the link in the label to be clickable only, not the full label

:frowning::frowning::frowning:

Just add another Label beside it.
It won’t create too much difference.
As I know while clicking, labels doesn’t show the touch color.

1 Like

That’s great idea …:clap::clap:

But i want to show description in a one label, not more…

Because, if in a description have a link in a center then, so i want show there… Not bottom…
Like a Facebook description system…

Can this possible in kodular…?

this is absolutely possible… but may seem hard for you

1 Like

@Learn_Engineering

Please give me idea… For creating this system…

Try using Web Viewer.
Create an HTML File and add it in load html block.
For Links the HTML Tag is

<a href="https://www.youtube.com">YouTube</a>

which will be appear and function like this.

YouTube

If you want to add text in Description Read this

HTML ignores things which cannot be recognized by it as text.
For example if you add
Hi
As it is not a html tag it ignores and gives only the text but if you give the HTML Tag or element or attributes like
<a href="https://www.youtube.com">YouTube</a>
It functions that unless preformatted.

1 Like

@Chirubot

Thanks for the suggestions…

I will try… :pray::pray::pray:

1 Like

The problem is how to detect a link in a text which contains both non-html and links text, something like that, your explanation above would
t work as you would’t always the person to provide a youtube link all the time

1 Like

I would give you the solution after sometimes as i’m currently busy

1 Like

Can You please Elaborate.

Yes HTML detects links

Didn’t you see what I mentioned above

Did you try, did it worked?
Suggestion

  • When the user posts the message save the HTML.

  • Remember to set the zoom to false for web viewer so that the user thinks that user will not get to know that’s a web viewer.

  • For Links, add a button, when they press it show two textboxes and set the blocks as given below.

1 Like

@Chirubot Nice Idea…

But I want a system where the link from the description will be searched automatically and then stored in html format.

This means that when a user posts a description, everything should be checked before storing the description …

So if there is a link in the description then this description should be replaced again …

Understand exactly what I mean …:point_down::point_down:

Description Example :

Hello I am Devloper, so if u want to learn app development so visit my site www.google.com this is my official website visit now.

Have a link in the above description (www.google.com). This link should be automatically detected and then the entire description should be replaced …

Description should be replaced in such a way that …:point_down::point_down::point_down:

If there is a have a link in the description, it should be replaced by Google in the same way, only the link should be in the html code.

In this way …:point_down::point_down:
Replaced description:

HTML Format

Hello I am Devloper, so if u want to learn app development so visit my site Google this is my official website visit now.

And when all this is done, this description should be in html format and stored in the database.

Can this happen …?
:woozy_face::woozy_face:

1 Like