문제

I would like to know what is the code to get links "Link A" or "Link B" found in the panel to create an article, maybe you can enlighten me.

Image for example http://goo.gl/v9jXU2

도움이 되었습니까?

해결책

In article model there is a function called getItem($pk) where $pk is article id.

File: components\com_content\models\article.php

Call this function with passing article id. this will return all article related data.

In result you can find links "Link A" or "Link B" in urls variable like below:

$result = $model->getItem($articleId);

$result->urls contains information related to links "Link A" or "Link B". json_decode this data and use accordingly.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top